• Our team is looking to connect with folks who use email services provided by Plesk, or a premium service. If you'd like to be part of the discovery process and share your experiences, we invite you to complete this short screening survey. If your responses match the persona we are looking for, you'll receive a link to schedule a call at your convenience. We look forward to hearing from you!
  • The BIND DNS server has already been deprecated and removed from Plesk for Windows.
    If a Plesk for Windows server is still using BIND, the upgrade to Plesk Obsidian 18.0.70 will be unavailable until the administrator switches the DNS server to Microsoft DNS. We strongly recommend transitioning to Microsoft DNS within the next 6 weeks, before the Plesk 18.0.70 release.
  • The Horde component is removed from Plesk Installer. We recommend switching to another webmail software supported in Plesk.

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