• 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.

More chrooted ssh commands

Svobi

New Pleskian
Hiyas!

I can activate chrooted ssh access for domains / domainmasters. The login itself works great but there are only very few commands available for these users. I want to add "tar" and "mysql" commands for such an ssh access that people can extract uploaded files and load larger dumps directly into the mysql database. Any idea where to configure this? Possible to set such addional commands as default values so when I'm creating new domains and ssh access for the new domain masters that I get the same commands there?

It's all about trusted users, no public or unknown ones so I can leave the security thoughts about other commands behind a bit.
 
I found a dir named "/var/www/vhosts/chroot" where the content is similar to the chroot dir of the domain. I guess the new chroot's take all the stuff from there. I managed to copy "tar" into that from my /bin/tar dir as well as into the domain chroot and there it works.

But still the problem that the mysql command doesn't work. I put in the necessary libs into the /var/www/vhosts/chroot/lib dir (and of course the corresponding domain chroot) but in the end when no more lib is missing I get the error:

ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)

I chmodded the my.cnf to 644 and tried even 777 but didn't help. My goal is to provide mysql dump directly into the database via commandline. Any other ideas here to make the mysql work within such a limited chroot?
 
Back
Top