• We value your experience with Plesk during 2025
    Plesk strives to perform even better in 2026. To help us improve further, please answer a few questions about your experience with Plesk Obsidian 2025.
    Please take this short survey:

    https://survey.webpros.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