vsftp selinux 500 OOPS: cannot change directory:

Selinux and vsftp issues

When setting up ftp on a linux server if you run into this error above please make sure that you use one of the solutions below (preferably the second one)

Solution #1 (The crazy solution)
Disable selinux

edit the file : /etc/selinux/config, save the changes and reboot the machine

Solution #2 (The responsible solution)

selinux is there for a reason why would you want to disable it; instead
run the following command to just allow ftp into home directories.
setsebool -P ftp_home_directory 1

Verify that the ftp_home_directory flag is on

getsebool -a | grep ftp

Useful Websites:
http://selinuxproject.org/