我想在我的CentOS服务器上使用vsftpd来configurationFTP服务器。
我已经使用yum install vsftpd安装了FTP服务器,并遵循: http : //www.cyberciti.biz/tips/rhel-fedora-centos-vsftpd-installation.html来configuration服务器。
我创build了一个用户,但是当我尝试通过Filezilla连接时,我得到:
Response: 331 Please specify the password. Command: PASS ********* Response: 500 OOPS: cannot change directory:/home/username Error: Critical error Error: Could not connect to server
看vsftpd日志我得到:
Thu Sep 1 11:41:19 2011 [pid 8535] CONNECT:Client“xx.xxx.xxx.xxx”Thu Sep 1 11:41:19 2011 [pid 8534] [username] OK LOGIN:Client“xx.xxx。 xxx.xxx”
这似乎把我从服务器断开。
我也可以在Filezilla中通过SFTPlogin。
谢谢
更新:
getsebool -a | grep ftp allow_ftpd_anon_write --> off allow_ftpd_full_access --> off allow_ftpd_use_cifs --> off allow_ftpd_use_nfs --> off ftp_home_dir --> off ftpd_connect_db --> off httpd_enable_ftp_server --> off sftpd_anon_write --> off sftpd_enable_homedirs --> off sftpd_full_access --> off sftpd_write_ssh_home --> off tftp_anon_write --> off
ftp_home_dir --> off
setsebool ftp_home_dir on试。