HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials

HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials (
-   Installation/Configuration (
-   -   jailkit ssh user and mysql access (

walkero 13th October 2011 00:06

jailkit ssh user and mysql access
Hello to all. Today I wanted to give to a specific ssh user access to mysql. This user was created with jailkit chroot access on the server. What I did was to copy the necessary files from root to this user's folders. To be more speciic I did the following:

1. Copied /usr/bin/mysql to /var/www/clients/client1/webX/usr/bin/
2. Copied /usr/lib/ to /var/www/clients/client1/webX/usr/lib/. This file is a link, so I copied and the equivalent library file in the same folder
3. Copied /usr/lib/ to /var/www/clients/client1/webX/usr/lib/. Same as above.
4. Copied /lib/ to /var/www/clients/client1/webX/lib/

By doing these steps, the user got access to the mysql, and only on his own domain database, as I wanted.

What I would like to ask is if what I did was the right way to configure that, or there is a better way to do it.

Thank you all for your time.

till 13th October 2011 09:56

That procedure is ok. You used the "manual" way. The jailkit tools which are used in ispconfig have also a function to copy commands incl. their libraries into a jail:

gring 26th November 2014 15:30

Is it still the right way to do it.

And since it is a copy of the files, does it still work when mysql is updated ?


till 26th November 2014 15:41

The purpose of a jail is to create a copy of system files and limit the user to use only the files in that jail. Jailkit provides alaos commands to update the files inside the jail.

gring 26th November 2014 16:41

Thanks, so it means under Debian / Ubuntu you can't use unattended-upgrades and write instead a script that will first upgrade and then run the jail files update tool.

All times are GMT +2. The time now is 09:01.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.