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/libmysqlclient.so.16 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/libstdc++.so.6 to /var/www/clients/client1/webX/usr/lib/. Same as above.
4. Copied /lib/libgcc_s.so.1 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.
|
Recent comments
16 hours 5 min ago
22 hours 46 min ago
1 day 2 hours ago
1 day 4 hours ago
1 day 12 hours ago
1 day 22 hours ago
1 day 22 hours ago
2 days 2 hours ago
2 days 6 hours ago
2 days 7 hours ago