After configuring the yum source, install it as follows
[root@localhost mnt]# yum list vsftpd
Loaded plugins: fastestmirror, security
Loading mirror speeds from cached hostfile
Available Packages
vsftpd.x86_64 2.2.2-11.el6_4.1
[root@localhost mnt] # yum install vsftpd.x86_64
......
edit configuration file vsftpd.conf
[root@localhost mnt]# cd /etc/vsftpd/
[root@localhost vsftpd]# cp vsftpd.conf vsftpd.conf.bak
[root@localhost vsftpd]# vim vsftpd.conf
do the following configuration:
"#anonymous_enable=YES" Change to "anonymous_enable=NO"
Add at the end of the file: userlist_deny=NO
Description: Only users in userlist are allowed to access the ftp server
Create an ftp user
[root@localhost vsftpd]# useradd testacc
[root@localhost vsftpd]# passwd testacc
Changing password for user testacc.
New password:
BAD PASSWORD: it is too simplistic/systematic
Retype new password:
passwd: all authentication tokens updated successfully.
[root@localhost vsftpd]# echo testacc >> /etc/vsftpd/user_list
Description: You can also edit the configuration file user_list to add a new user at the end of the file. Add
in /etc/vsftpd/vsftpd.conf:
chroot_list_enable=YES //The user cannot leave the home directory
chroot_list_file=/ etc/vsftpd/chroot_list Restart the ftp server
and then add ftpuser in /etc/vsftpd/chroot_list, one line per line.
Similar to the following:
ftpusr1
ftpusr2
...
/etc/vsftpd/userlist Add:
ftpusr1
ftpusr2
...
[root@localhost vsftpd]# service vsftpd restart
Beijing java job search group 145471323
Centos 7 installation and configuration vsftpd
Guess you like
Origin http://43.154.161.224:23101/article/api/json?id=326150219&siteId=291194637
Recommended
Ranking