SFTP, Chroot and jailing users
OK, This has been kicking my ass. here is the lowdown.
I have an existing ftp server I want to transfer to a SFTP server, but I cannot figure out how to chroot users. I have read every
tutorial, and cannot apply those concepts to what I need.
Here is how my server is set up.
- FTP files are stored on a mounted harddrive
- Every folder was created prior to users (data dump from old windows box) & users were made to correspond with folders
- 35+ users. All with login, but no home directories.
I have 2 options as I see it. Either figure out how to prevent users from leaving the directories I have already created (part that's killing me). Or, dump the users list, start all over having each added user make a home directory and then dump the necessary folders into each home directory.
** oh yea, I think I need to mount the drive with a only read permissions for users. I tried umasking this, but could not login under any user.
Either way, I need help with chroot, and I am utterly confused.
Thanks in advance.