Subsystem SFTP internal - SFTP
Match the User sftpuser1
X11Forwarding no
AllowTcpForwarding no
ForceCommand internal - SFTP
ChrootDirectory/home/WWW/public
That new users can sftpuser1 through filezilla software access/home/WWW/public this folder, but now the demand is also want sftpuser1 users access to other folders/home/WWW/home/WWW/HTML/PHP and visit again (but not more folders), should be what command? Thank you very much!
CodePudding user response:
You this kind of more than one user directory I didn't try, but I was a root directory several subdirectories, and then read the root directory permissions, directory permissions set to a certain group of users can access, your question I think it's just a matter of a permissions distributionCodePudding user response:
Set can access a root directory, and then in the root directory several new directory that I will, just don't know how to access is not the same layer of different directoriesCodePudding user response:
After trying to achieve, although method may have some shortcomings, mainly use the mount -- bind command to map,