Home > OS >  ftp
ftp

Time:11-23

Centos7.1 how FTP make both local user login to their own folder respectively

CodePudding user response:

1, create a account and password
[ABC] root @ localhost # useradd userA
[ABC] root @ localhost # useradd userB
[ABC] root @ localhost # passwd userA
[ABC] root @ localhost # passwd userB

2, modify the configuration file

Local_enable=YES (to allow local users to access the FTP server)
Local_root=/TSZ235 (local users access to the root directory of the FTP server)
Write_enable=YES (open any form of write access)
Local_umask=022 (local users upload permissions mask)
Save out
Note: if you want a local account to be able to write, it must give root directory/TSZ235 write permissions
Chmod 777/TSZ235