cancel
Showing results for 
Search instead for 
Did you mean: 

Plesk SSH user setting

Plesk SSH user setting

Hi, 

I have a server with Plesk.

I have installed Magento CE 2.2.6 on 3 sites and usualy i access trough SSH using the server root user and getting super user power with su -

 

It is not secure and i want to use a separate user for each site... but if i use a plesk user when i try to give command i get this error: 

 php bin/magento setup:di:compile
Command line user does not have read and write permissions on generated directory. Please address this issue before using Magento command line.

if i use sudo i get: 

 user is not in the sudoers file.  This incident will be reported.

I have tried to add the user to sudoers 

sudo adduser <user> sudo

but i get this error:

user is not in the sudoers file.  This incident will be reported.
1 REPLY 1

Re: Plesk SSH user setting

Hi, Have you tried su - command to get root privileges? If got it then use

usermod -aG sudo username

usermod -aG wheel username