View previous topic :: View next topic |
Author |
Message |
matttah Apprentice
Joined: 22 Jan 2005 Posts: 207
|
Posted: Thu Jun 09, 2011 8:18 pm Post subject: SFTP/FTP with chrooted? |
|
|
Hey All -
I'm trying to setup on my server so that users can login via SFTP(preferably, FTP if it isn't possible to do what I want via SFTP) and upload files. The directory they login to can't be owned by root as the web server needs to read/write from it so it is owned by the group 'web'. Any suggestions on how to accomplish this?
Thanks!
Daum |
|
Back to top |
|
|
Hu Administrator
Joined: 06 Mar 2007 Posts: 23081
|
Posted: Fri Jun 10, 2011 3:03 am Post subject: |
|
|
Have you looked at man sshd_config options ForceCommand internal-sftp and ChrootDirectory? |
|
Back to top |
|
|
matttah Apprentice
Joined: 22 Jan 2005 Posts: 207
|
Posted: Fri Jun 10, 2011 12:35 pm Post subject: |
|
|
Yeah but it requires the chroot to be owned only by root and not readable to any others? |
|
Back to top |
|
|
matttah Apprentice
Joined: 22 Jan 2005 Posts: 207
|
Posted: Fri Jun 10, 2011 3:21 pm Post subject: |
|
|
Ended up reorganizing the architecture on the server so that I could have the chrooted folder root owned.
Thanks,
Daum |
|
Back to top |
|
|
|