In CentOS 6.5 (SElinux off, chroot) with Webmin/Virtualmin (latest version) I want to give a developer access to SSH within /home/site so he can use only git to manage the code. I also want to give him access to FTP into /home/site/ and MySQL access to the 3 DBs (site and 2 sub-servers)
SSH: I created an user called dev_ssh. SSH is cert based only login and I have SSH to /home/dev_ssh working. I want to give this user access to the /home/site directory, but the user cannot cd to /home/site unless I add him to sudoers.
FTP: I created 1 user for the site (dev.site), he can access the entire /home/site. This part is working fine.
MySQL: I created a mysql user dev_mysql, and gave this user access to all 3 DBs (main one and sub-servers' DBs). The MySQL access I might have to keep it this way, as that user has access to remotely login to MySQL only for those 3 DBs (whereas the unix user can only access from MySQL localhost). This part is working fine.
How do I solve the SSH access to /home/site issue?
Additionally, is this entire setup the proper way to set this up in a Webmin environment?