修改/etc/xinetd.d/vsftpd文件,把disable=no改成disable=yes
========
linux-211:/etc # ftp 192.1.2.211
Connected to 192.1.2.211.
220 (vsFTPd 2.0.4)
Name (192.1.2.211:root): svnroot
530 This FTP server is anonymous only.
ftp: Login
vsftp服务器安装后默认不允许本地用户登录,出现该错误。需要修改vsftp配置文件。
解决:
vi /etc/vsftpd.conf
将local_enable=YES前的#(注释)取消;
在anonymous_enable=YES前加上#。
将允许本地用户项打开:
# Local FTP user Settings
#
# Uncomment this to allow local users to log in.
#
local_enable=YES
重启vsftp服务:
/etc/init.d/vsftpd restart
如果需要root登录
/etc # vi ftpusers
#root