- 论坛徽章:
- 0
|
安装的时候选中了ftp服务,安装完成后对vsftp的相关文件做了如下修改
1、修改文件/etc/vsftp/ftpusers
# Users that are not allowed to login via ftp
#root
bin
daemon
adm
lp
sync
shutdown
halt
mail
news
uucp
operator
games
nobody
~
2、修改文件/etc/vsftp/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
3、/etc/vsftp/vsftp.conf
anonymous_enable=YES
local_enable=YES
write_enable=YES
local_umask=022
dirmessage_enable=YES
xferlog_enable=YES
connect_from_port_20=YES
xferlog_std_format=YES
listen=YES
pam_service_name=vsftpd
userlist_enable=YES
tcp_wrappers=YES
4、启动ftp服务
#/etc/init.d/vsftp start
这个时候使用ftp登录时出现错误如下
220 (vsFTPd 2.0.5)
User (192.168.0.30 none)): root
331 Please specify the password.
Password:
500 OOPS: cannot change directory:/rootConnection closed by remote host.
======================
请问这个是什么原因啊,同样的配置我在rhel4u5中就可以ftp,不知道哪儿有问题 |
|