0

I have integrated a linux server with Active directory. I have multiple Active directory groups created sftpgroup1, sftpgroup2 and sftpgroup3. UserA is part of sftpgroup1 and sftpgroup2. I am trying to jail a unix directoryA to match group sftpgroup1 and unix directoryB to match sftp group2. In the /etc/sshd/sshd_config I have the following configured.

Match Group sftpgroup1

ChrootDirectory /directoryA/

X11Forwarding no

AllowTcpForwarding no

ForceCommand internal-sftp -u 002

Match Group sftpgroup2

ChrootDirectory /directoryB/

X11Forwarding no

AllowTcpForwarding no

ForceCommand internal-sftp -u 002

I am able to sftp to the server but can only see the sub folders under /directoryA/. But not able to get the subfolders under /directoryB/. As the AD user is part of sftpgroup1 and sftpgroup2 I want the user to be able to access directories under /directoryA and /directoryB

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.