• Debian 11 has reached its end-of-life (vendor EOL date - August 31, 2026). Plesk Obsidian 18.0.81 is the last release to support it.
    If you are running Plesk Obsidian on Debian 11, we recommend you upgrade those servers to Debian 12 using our dist-upgrade tool.
  • We plan to deprecate and remove the support for XML RPC protocol versions earlier than 1.6.9.1 in Plesk Obsidian 18.0.82. We strongly recommend that you update all existing integrations using earlier versions of the XML RPC protocol to comply with the version 1.6.9.1 specification.

Question How to limit SSH user to directory in webspace

kojot

Regular Pleskian
Hello,
I made webspace and I need to give credentials to an developer who need to develop some app.
He need to create subdomains, add ftp users, create mailboxes, etc etc... almost everything.
Also he need SSH privilege, because he need to write few SH scripts which will run via PHP from remote.
Scripts will be only for copy, backup, restore, and similar things...

I created webspace, made user role, and everything works fine until I gave SSH privilege to that user.
I logged in with that SSH and I see that he can list directories out of his webspace /var/www/vhosts/developer.com/

How to limit him just to this folder?
 
he can list directories out of his webspace /var/www/vhosts/developer.com/
It doesn't look like the serious problem because system user has very limited permissions.
If you need such kind of chrooted environment - I can say that it is out of Plesk scope, unfortunately.
 
Hi,
I'm using Bitvise client.
Also I can use SFTP with same user, and yes, with this user I can't open folders for other webspaces, and I cant download or change anything, but I can go to root, and I can download everything. I did not try to edit something...

Is my permissions on server misconfigured or...?
 

Attachments

  • ssh.JPG
    ssh.JPG
    93.8 KB · Views: 7
Have you tried to use chrooted shell for access to the server over SSH? You can set it through "We Hosting Access" of your subscription.
 
Back
Top