3、修改ftpusers配置文件
[iyunv@linux5 /]# cd /etc/vsftpd/
[iyunv@linux5 vsftpd]# vi ftpusers
# Users that are not allowed to login via ftp
#root "加上#"
bin
daemon
adm
lp
sync
shutdown
halt
mail
news
uucp
operator
games
nobody
4、修改user_list配置文件
[iyunv@linux5 vsftpd]# vi user_list
# vsftpd userlist
# If userlist_deny=NO, only allow users in this file
# If userlist_deny=YES (default), never allow users in this file, and
# do not even prompt for a password.
# Note that the default vsftpd pam config also checks /etc/vsftpd/ftpusers
# for users that are denied.
#root "加上#"
bin
daemon
adm
lp
sync
shutdown
halt
mail
news
uucp
operator
games
nobody
~
5、修改vsftpd.conf配置文件
[iyunv@linux5 vsftpd]# vi vsftpd.conf
添加listen_port=21
6、启动vsftpd服务
[iyunv@linux5 /]# service vsftpd start