Home > Linux > vsftpd's “500 OOPS: cannot change directory” error

vsftpd's “500 OOPS: cannot change directory” error

March 24th, 2009 Leave a comment Go to comments

I recently installed a vsftpd FTP server on a CentOS Linux 5.2 box. After changing the FTP user’s home directory, I received the following error message every time I attempted to login as ftp:

500 OOPS: cannot change directory
500 OOPS: child died

Permissions were setup correctly on the ftp user’s home directory, so I did some digging around, and discovered that there’s an SELinux setting that causes this problem. I didn’t want to turn SELinux off, so the solution was to run the following command, which enables access to the ftp user’s home directory.

setsebool -P ftp_home_dir

Categories: Linux
  1. No comments yet.
  1. No trackbacks yet.
You must be logged in to post a comment.