VSFTPD There are three ways to sign in
Anonymous user
Local user
Virtual user
The following describes the configuration of these three types of users separately
1. Anonymous users
After installing VSFTPD with Yum, modify the configuration file and restart it to use anonymous users to access the
# yum-y Install VSFTPD
# vi/etc/vsftpd/vsftpd.conf
Anonymous_enable=yes Open Anonymous User login
Anon_upload_enable=yes allow anonymous users to upload permissions
Anon_mkdir_write_enable=yes allow anonymous users to create directory permissions
#/etc/init.d/vsftpd Restart reboot vsftpd and use anonymous user access test
2. Local Users
(1) Create a local user and specify the home directory and deny this user login system
# useradd-d/home/tom-s/sbin/nologin
# useradd-d/home/jore-s/sbin/nologin
"-D": Specify home Directory
"-S": Deny login System
(2) Modify the vsftpd.conf configuration file, open the local user, and pin the local user to their home directory
# vi/etc/vsftpd/vsftpd.conf
Anonymous_enable=no Close anonymous Users
Local_enable=yes Open Local User
Write_enable=yes allow local users to have write access
local_umask=022 Anti-mask, permission 755
Chroot_local_user=no If all local users are pinned to their home directory
Chroot_list_enable=yes if only the user in the List_file file is pinned to their home directory
Chroot_list_file=/etc/vsftpd/chroot_list only the users in the Chroot_list file are pinned to their home directory
(3) Create the Chroot_list file and add the user to the file as required
# vi/etc/vsftpd/chroot_list
Tom just fixed Tom in his home directory.
(4) Restart the VSFTPD service, log in with Tom and Jore FTP, verify that Tom can only be restricted to his own home directory, and Jore can enter other directories
Three types of user and directory permissions for VSFTPD