Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

carlosribas

macrumors newbie
Original poster
Jun 19, 2013
12
0
I want to set up a new sftp server with a public folder for a few users. I have an ODM server and I want to use the users from this ODM to authenticate into the sftp server. However, I want to chroot the users into a new folder created in this sftp server, instead of use their home directory from ODM.

I created a group in the sftp server and I added this group to a user from ODM, but I dont know how to set up my sshd_config file. I tried this without success:

Match Group group_name
ChrootDirectory /path_to_group_name/
ForceCommand internal-sftp
AllowTcpForwarding no

I appreciate any help.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.