linux版本为
引用
[root@mcprod share]# more /etc/redhat-release
CentOS release 5 (Final)
内核为
引用
[root@mcprod vsftpd]# uname -a
Linux mcprod 2.6.18-53.el5PAE #1 SMP Mon Nov 12 02:55:09 EST 2007 i686 i686 i386 GNU/Linux
vsftp需要的rpm包为
引用
[root@mcprod vsftpd]# rpm -qa|grep vsftp
vsftpd-2.0.5-10.el5
在/etc/vsftpd下面存放着vsftp用户配置的3个文件:user_list,vsftpd.conf,ftpusers
引用
[root@mcprod vsftpd]# ls -rtl
total 24
-rwxr--r-- 1 root root 338 Mar 15 2007 vsftpd_conf_migrate.sh
-rw------- 1 root root 362 Jul 13 22:32 user_list
-rw------- 1 root root 4428 Jul 17 13:14 vsftpd.conf
-rw------- 1 root root 126 Jul 17 13:24 ftpusers
将ftpusers文件里面的root用户注释掉即可。
注意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.
********************************************
linux版本为
引用
[root@test init.d]# more /etc/redhat-release
Red Hat Enterprise Linux AS release 4 (Nahant Update 2)
内核为
引用
[root@test init.d]# uname -a
Linux test 2.6.9-22.EL #1 Mon Sep 19 18:20:28 EDT 2005 i686 i686 i386 GNU/Linux
vsftp开放root权限,只要将root用户注释掉即可
引用
[root@test init.d]# more /etc/vsftpd.ftpusers
# Users that are not allowed to login via ftp
#root
bin
daemon
adm
lp
sync
shutdown
halt
news
uucp
operator
games
nobody
[root@test init.d]# more /etc/vsftpd.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
news
uucp
operator
games
nobody