I’m not sure if i chose the correct catagory for tis question, but I will try here anyway.
I’m trying to learn to configure the Nextcloud within the CLI of Ubuntu 20.04 and I’m trying to create an users and groups.
I’m able to create the users and groups fine… But I can’t find if I somehow can add the quota for users? Can I only change the qouta for users within the webgui?
bahnhof@ubuntu:~$ curl -X POST https://admin:Admin!23@cloud.example.com/ocs/v1.php/cloud/users -H "OCS-APIRequest: true" -d userid="Frank" -d password="FranksPassword"
-bash: !23: event not found
If i have a password with ! n it it wont work, but when I changed it with just letters it worked… any idea?
Ow… I even had to use -k to remove a SSL error:
curl: (60) SSL certificate problem: unable to get local issuer certificate
More details here: https://curl.haxx.se/docs/sslcerts.html
curl failed to verify the legitimacy of the server and therefore could not
establish a secure connection to it. To learn more about this situation and
how to fix it, please visit the web page mentioned above.
So…
curl -k -X POST https://admin:Admin!23@cloud.example.com/ocs/v1.php/cloud/users -d userid="Testuser2" -d password="Testing!"
does not work but this will work:
curl -k -X POST https://admin:testingwiththispw@cloud.example.com/ocs/v1.php/cloud/users -d userid="Testuser2" -d password="Testing!"
Ahh that might work…
I told this fix for my colleague and showed him that we can’t use the occ command and need to use CURL for quota… he found that occ an be used…