Site icon David Yin's Blog

Proftpd Login problem with 530 error

I installed a ftp server, Proftp on a developing virtual system. It is on Centos 6 64bit. Install Proftpd with yum command.

When I use ftp client software to connect the ftp server, I got following error.
Response:    220 FTP Server ready.
Command:    USER davidyin
Response:    331 Password required for davidyin
Command:    PASS ******
Response:    530 Login incorrect.
Error:    Critical error
Error:    Could not connect to server

I checked the error log file and saw the following error message.

Jun 09 18:40:34 localhost.localdomain proftpd[5912] 127.0.0.1 (::ffff:192.168.0.102[::ffff:192.168.0.102]): FTP session opened.
Jun 09 18:40:34 localhost.localdomain proftpd[5912] 127.0.0.1 (::ffff:192.168.0.102[::ffff:192.168.0.102]): notice: unable to use '~/' [resolved to '/home/davidyin/']: Permission denied
Jun 10 01:40:34 localhost.localdomain proftpd[5912] 127.0.0.1 (::ffff:192.168.0.102[::ffff:192.168.0.102]): Preparing to chroot to directory '~/'
Jun 10 01:40:34 localhost.localdomain proftpd[5912] 127.0.0.1 (::ffff:192.168.0.102[::ffff:192.168.0.102]): davidyin chdir("/"): No such file or directory
Jun 10 01:40:34 localhost.localdomain proftpd[5912] 127.0.0.1 (::ffff:192.168.0.102[::ffff:192.168.0.102]): FTP session closed.

It is confused me so much and at the last I found the problem.
The reason I get the errors with the home dirs is because of selinux

I have to disable it and everything is OK now.


setenforce 0

Exit mobile version