rockstor / rockstor-doc

Rockstor documentation
http://rockstor.com/docs
Other
24 stars 29 forks source link

Correct sftp chroot top dir to mnt3 #435

Closed phillxnet closed 1 year ago

phillxnet commented 1 year ago

The location indicated for our sftp chroot arrangement is indicated to be under /mnt2:

Note also that the share or shares owned by the SFTP user will be mounted within a chroot environment, internally this is located at /mnt2//.

But it is in fact under /mnt3

cat /etc/ssh/sshd_config.d/rockstor-sftp.conf
###BEGIN: Rockstor SFTP CONFIG. DO NOT EDIT BELOW THIS LINE###
Subsystem       sftp    internal-sftp
AllowUsers root test-user
Match User test-user
        ForceCommand internal-sftp
        ChrootDirectory /mnt3/test-user
        X11Forwarding no
        AllowTcpForwarding no