500 OOPS: cannot change directory:/home/..
After installing vsftpd, but Client Access suggest the following error:
500 OOPS: CAN not Change Directory: / Home / the FTP
because the system is installed SELinux, because the default is no open support FTP, so have been blocked for access.
View SELinux settings
getsebool -a|grep ftp
ftpd_disable_trans –> off
或者
ftp_home_dir–>off
Use the command to open setsebool
setsebool ftpd_disable_trans 1
or
setsebool ftp_home_dir 1
Check whether the current state is on state
getsebool -a|grep ftp
ftpd_disable_trans –> on
或者
ftp_home_dir–>on
setsebool use -P parameter without having to enter each boot command
setsebool ftpd_disable_trans -P 1
or
setsebool ftp_home_dir -P 1
service vsftpd restart
For the configuration of selinux
Such as closing, only a warning, mandatory and so need to edit the / etc / sysconfig / selinux default is mandatory
linux ftp users add 500 OOPS vsftp arise: can not change directory solution of
useradd -d / var / www ftpuser // useradd -d directory user name
passwd ftpuser
You are then prompted to enter a password corresponding
Then you can log in
ftp 127.0.0.1
Then follow the prompts to enter your user name and the corresponding password
It appears 500 OOPS: can not change directory solutions
getsebool ftpd_disable_trans
ftpd_disable_trans –> off
setsebool ftpd_disable_trans 1 // use the command to open setsebool
getsebool ftpd_disable_trans // Check whether the current state of the state is on
ftpd_disable_trans –> on
setsebool -P ftpd_disable_trans 1 // setsebool use -P parameter without having to enter each boot command
service vsftpd restart
530 Permission denied。
Troubleshooting:
1. First check whether the system is turned on vsftp service, if not open, to open the service.
Methods 1.setup- system services - since the launch of the service
method 2. The interface settings, service vsftpd restart
2. View Configuration
vsftpd configuration, the configuration file defining a user vsftpd connection control configuration.
vsftpd.ftpusers: located in the / etc directory. It specifies which users can not access the FTP server account, such as root and so on.
vsftpd.user_list: located in the / etc directory. The documents in the default user account can not access the FTP server, enable userlist_enable only when vsftpd .conf configuration file = NO option if access is allowed.
vsftpd.conf: located in the / etc / vsftpd directory. Customize the user login control, user access control, timeout setting server FTP server configuration options, performance options server, the server in response messages.
3. After configuration changes, run the service vsftpd restart vsftpd restart the service.