If you have the ftp error below with SELinux enabled, you can disable SELinux to resolve the issue.
[root@localhost ~]# ftp localhost
Connected to localhost (
220 (vsFTPd 2.2.2)
Name (localhost:user): user
331 Please specify the password.
500 OOPS: cannot change directory:/home/user
Login failed.
ftp> quit
To resolve this you can use setsebool
# su – root
# getsebool -a | grep ftp
# setsebool -P ftp_home_dir on
And you are done. Now you will not get error 500.
Posted in: Linux.
Last Modified: October 31, 2013

Leave a reply