Home > OS >  How to make the new user access to a number of different folders
How to make the new user access to a number of different folders

Time:09-30

Sftpuser1 by the root user to create a new user, and then in the/etc/SSH/sshd_config to add the following content,

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 distribution

CodePudding 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 directories

CodePudding user response:

After trying to achieve, although method may have some shortcomings, mainly use the mount -- bind command to map,
  • Related