1、首先使用yum安装vsftpd;
2、新建ftp目录,mkdir /home/ROOT
3、设置目录权限:chmod 755 /home/ROOT(匿名访问权限,很重要)
4、添加账号:useradd -d /home/ROOT -s /sbin/nologin ROOT
5、修改密码:passwd ROOT
6、修改配置/etc/vsftpd/vsftpd.conf,配置匿名账号访问:
# Example config file /etc/vsftpd/vsftpd.conf
#
# The default compiled in settings are fairly paranoid. This sample file
# loosens things up a bit, to make the ftp daemon more usable.
# Please see vsftpd.conf.5 for all compiled in defaults.
#
# READ THIS: This example file is NOT an exhaustive list of vsftpd options.
# Please read the vsftpd.conf.5 manual page to get a full idea of vsftpd's
# capabilities.
#
# Allow anonymous FTP? (Beware - allowed by default if you comment this out).
anonymous_enable=YES
#
# Uncomment this to allow local users to log in.
local_enable=YES
#
# Uncomment this to enable any form of FTP write command.
write_enable=YES
#
# Default umask for local users is 077. You may wish to change this to 022,
# if your users expect that (022 is used by most other ftpd's)
local_umask=022
#
# Uncomment this to allow the ano