How can I chroot sftp-only users into a directory different from their homes?

Discussion in 'Mac OS X Server, Xserve, and Networking' started by carlosribas, Sep 2, 2013.

  1. macrumors newbie

    Joined:
    Jun 19, 2013
    #1
    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.
     
  2. thread starter macrumors newbie

    Joined:
    Jun 19, 2013

Share This Page