• Please be aware: Kaspersky Anti-Virus has been deprecated
    With the upgrade to Plesk Obsidian 18.0.64, "Kaspersky Anti-Virus for Servers" will be automatically removed from the servers it is installed on. We recommend that you migrate to Sophos Anti-Virus for Servers.
  • The Horde webmail has been deprecated. Its complete removal is scheduled for April 2025. For details and recommended actions, see the Feature and Deprecation Plan.

Issue sudo user has very limited access

Havouza

New Pleskian
Hi!
I run Plesk on Ubuntu 18.04
I often need access via SSH and has always used root user. But I know it is not the best to do so I have created a new user and given it sudo rights. But somehow it does not work.
Example
I want to make a cd /var/www/vhosts/example.com
I can go to vhosts but for example.com I get permission denied. This seems somehow be a Plesk problem, I have another server with Webmin CP and there I have no problem at all

Please advice

Regards

Anders Yuran
 
I think a different approach could work better for you.
- Create a standard user account on your system without root privileges
- Verify (by testing) that this account can log in to SSH into its home directory
- In your /etc/ssh/sshd.config file set the "PermitRootLogin" option to "no"
- Restart sshd
- Login with the normal user account that you have created in step 1
- Then use "su" command to upgrade your permissions to root privileges after logging in.
 
Back
Top