0

I have an Ubuntu server (CloudPanel installed), I can add new sites with user ubuntu by CLI using something like

clpctl site:add:php --domainName=www.domain.com --phpVersion=8.1 --vhostTemplate='Generic' --siteUser=john --siteUserPassword='!secretPassword!'

But, this command works only ubuntu user, I need to give user "site1" privileges to use this command too. I need add new sites with user "site1".

I read this command line but, is this secure?

sudo  usermod -aG sudo <username>

I have root, SSH and sFTP access. How to give this privileges?

Additional informations

What software is this? CloudPanel CLI https://www.cloudpanel.io/docs/v2/getting-started/other/

How add new users/sites? https://www.cloudpanel.io/docs/v2/cloudpanel-cli/root-user-commands/#site

What is the output when you try to run this command? "There are no commands defined in the "site:add" namespace." because clpctl is allowed for root users

0 Answers0