If you’ve created a new user, and assigned it a home directory, you might run into the following error message when you’re running SELinux in combination with FTP daemons (proftpd, vsftpd, …): 500 OOPS: cannot change directory.
The message is thrown because SELinux is preventing the FTP daemon from reading user home directories.
You can overwrite this setting, by issuing the following command directly from the CLI.
/usr/sbin/setsebool -P ftp_home_dir=1
This will allow FTP access to a user home directory through SELinux.
Ps; don’t replace ftp_home_dir with the home directory you’re trying to access, it’s a setting named “ftp_home_dir” that we’re trying to alter.