我试图在我的vsftpd服务器上使用CentOS配置FTP服务器。
我已经使用yum install vsftpd安装了FTP服务器,下面是:http://www.cyberciti.biz/tips/rhel-fedora-centos-vsftpd-installation.html来配置服务器。
我已经创建了一个用户,但是当我试图通过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日志:
清华9月1日11:41:19 2011年pid 8535连接:客户端"xx.xxx.xxx.xxx“清华9月1日11:41:19 2011 pid 8534 OK登录: Client "xx.xxx.xxx.xxx”
它似乎切断了我与服务器的连接。
我也可以在Filezilla中通过SFTP登录。
谢谢
更新:
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发布于 2011-09-01 09:15:29
ftp_home_dir --> offsetsebool ftp_home_dir on,再试一次。
https://serverfault.com/questions/307135
复制相似问题