Problem Description: Today, the company has set up ftp based on virtual users. I use the rpm package that comes with the CD, and the system is centos5.5. After the setup is complete, it can be started automatically, but ftp users cannot log on. I used another linux server to log on to the ftp server cannotchangedirectory:/home/*** failed to connect to the ftp server. Error: 500 OOPS: cannotchangedirectory:/h
Problem description:
Today, the company has set up ftp based on virtual users. I use the rpm package that comes with the CD, and the system is centos 5.5. After the setup is complete, it can be started automatically, but ftp users cannot log on.
I use another linux server to log on to the ftp server.
Cannot change directory:/home /***
Failed to connect to the ftp server. error message:
500 OOPS: cannot change directory:/home /*******
500 OOPS: child died
Solution:
# Setsebool ftpd_disable_trans 1 manually enter the command
# Service vsftpd restart
However, this method requires one input every time it is started, which is very troublesome!
At that time, I wanted to write it in the main configuration file, but it still failed to take effect after it was started,
Therefore, write the two statements
/Etc/rc. local can take effect
And enable automatic startup,
I hope to help you.