• Introducing WebPros Cloud - a fully managed infrastructure platform purpose-built to simplify the deployment of WebPros products !  WebPros Cloud enables you to easily deliver WebPros solutions — without the complexity of managing the infrastructure.
    Join the pilot program today!
  • Support for BIND DNS has been removed from Plesk for Windows due to security and maintenance risks.
    If a Plesk for Windows server is still using BIND, the upgrade to Plesk Obsidian 18.0.70 will be unavailable until the administrator switches the DNS server to Microsoft DNS.

Create a new CLI user

mattdwen

New Pleskian
I am trying to create a user which has rights to the Panels CLI tools.
I've added the user to the psaadm group, as the documentation indicates, as well as the swkey-data group, as I was getting access denied for that dir.
I am using sudo to run the command as that user:

sudo -u mcp /usr/local/psa/bin/subscription --info test.com

But I am receiving this error:

Unable to connect to database: get_admin_password() failed: file_get_contents() failed:

Suggestions?
 
You should be logged as root for running Plesk CLI utilities.
 
No other options? I'm trying to automate a few things, and root really isn't an option.
I'll write everything I need to use the API RPC if I have to, but would prefer to avoid the work :)
 
Back
Top