Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
SFTP/FTP with chrooted?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
matttah
Apprentice
Apprentice


Joined: 22 Jan 2005
Posts: 207

PostPosted: Thu Jun 09, 2011 8:18 pm    Post subject: SFTP/FTP with chrooted? Reply with quote

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
View user's profile Send private message
Hu
Administrator
Administrator


Joined: 06 Mar 2007
Posts: 23081

PostPosted: Fri Jun 10, 2011 3:03 am    Post subject: Reply with quote

Have you looked at man sshd_config options ForceCommand internal-sftp and ChrootDirectory?
Back to top
View user's profile Send private message
matttah
Apprentice
Apprentice


Joined: 22 Jan 2005
Posts: 207

PostPosted: Fri Jun 10, 2011 12:35 pm    Post subject: Reply with quote

Yeah but it requires the chroot to be owned only by root and not readable to any others?
Back to top
View user's profile Send private message
matttah
Apprentice
Apprentice


Joined: 22 Jan 2005
Posts: 207

PostPosted: Fri Jun 10, 2011 3:21 pm    Post subject: Reply with quote

Ended up reorganizing the architecture on the server so that I could have the chrooted folder root owned.

Thanks,
Daum
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum