into_311
July 13th, 2009, 02:05 PM
Hello,
Forgive me for my ignorance, but I have tried to follow serveral how-to'ss in the forum here to setup an sftp jail/chroot environment.
our situation is the following:
1) Our company has hired on a third party website design company
2) their website they developed is not working right, and we want to allow them access to change the code and fix the rss feeds, etc.
3) I'm not sure how to lock them down so when they use sftp it will dump them into the /var/www/vhosts/HOSTNAME directory without allowing them to cd to any other directories, and allow them to modify the files ONLY in that directory.
4) I have tried to setup a chroot/jail environment using the following tutorials:
http://ubuntuforums.org/showthread.php?t=128206 (which only
worked till I got to the part where it has you extract the examples - I could not find those examples in there to extract).
http://www.fuschlberger.net/programs/ssh-scp-sftp-chroot-jail/ (which worked well, however, I created my chroot path to /var/www/vhosts/HOSTSITENAME/ this puts me in there, but I can't get to the files in /var/www/HOSTSITENAME/. DO I need to create the chroot path to /var/www/vhosts/ ? I'm concerned about doing that also, because of other production sites running in that directory that we don't want them accidentally modifying in any way shape or form.
I'm not SURE if that is what I need is a chroot/jailed environment or if you have other ideas on how this can be accomplished easily and securely.
However, one requirement I do have is it has to be to sftp or scp using openssh. I cannot get the network admins to open port 21 and allow non-encrypted ftp transmissions....
Your help would be greatly appreciated.
Forgive me for my ignorance, but I have tried to follow serveral how-to'ss in the forum here to setup an sftp jail/chroot environment.
our situation is the following:
1) Our company has hired on a third party website design company
2) their website they developed is not working right, and we want to allow them access to change the code and fix the rss feeds, etc.
3) I'm not sure how to lock them down so when they use sftp it will dump them into the /var/www/vhosts/HOSTNAME directory without allowing them to cd to any other directories, and allow them to modify the files ONLY in that directory.
4) I have tried to setup a chroot/jail environment using the following tutorials:
http://ubuntuforums.org/showthread.php?t=128206 (which only
worked till I got to the part where it has you extract the examples - I could not find those examples in there to extract).
http://www.fuschlberger.net/programs/ssh-scp-sftp-chroot-jail/ (which worked well, however, I created my chroot path to /var/www/vhosts/HOSTSITENAME/ this puts me in there, but I can't get to the files in /var/www/HOSTSITENAME/. DO I need to create the chroot path to /var/www/vhosts/ ? I'm concerned about doing that also, because of other production sites running in that directory that we don't want them accidentally modifying in any way shape or form.
I'm not SURE if that is what I need is a chroot/jailed environment or if you have other ideas on how this can be accomplished easily and securely.
However, one requirement I do have is it has to be to sftp or scp using openssh. I cannot get the network admins to open port 21 and allow non-encrypted ftp transmissions....
Your help would be greatly appreciated.