• 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.
  • We’re working on enhancing the Monitoring feature in Plesk, and we could really use your expertise! If you’re open to sharing your experiences with server and website monitoring or providing feedback, we’d love to have a one-hour online meeting with you.

Issue SSH access: how can we block display websites list

Erwan

Regular Pleskian
Hello,

We have for example 50 customer suscriptions.
When they use the SSH access, they can only execute their files in /var/www/vhosts/mydomain.com but they can see list of domain with:

#ls -l ../

Example:
mydomain.com
otherdomain.com
otherdomain2.com
...

This poses a commercial problem.

Is it possible not to go to /var/www/vhosts, only to /var/www/vhosts/mydomain.com?
Can we block the display of the list of websites?

Thank you.
 
In the "chrooted SSH" access, it is not possible to list directory contents above the user's login path. If your subscription users are able to see beyond their own web space, you are not using the chrooted environment. This enables users to read and modify other files on the server, too. Change your subscription settings to "chrooted SSH only".
 
Thank you Peter.

Ok but i can only select "/bin/bash (chrooted)"?
I can not select "/bin/sh"?
 
Ok. I use always /bin/sh.
With "/bin/bash (chrooted)", i can not use for example "php", "mysql"... command?

I have always:
bash: php: command not found

We must give SSH acces for Capistrano and PHP Symphony...
 
Maybe these website should consider to use a virtual private server with root access and only a single account on them. You cannot have both, root access and protection against root access.
 
Back
Top