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?
That seems to workā¦ but I get another issue thenā¦
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ā¦