• Plesk Uservoice will be deprecated by October. Moving forward, all product feature requests and improvement suggestions will be managed through our new platform Plesk Productboard.
    To continue sharing your ideas and feedback, please visit features.plesk.com

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