Linux Vsftp error 500 OOPS how to fix

  

Some Linux users encountered vsftp 500 OOPS when using vsftp: can not change directory: /home/this problem, therefore, today Xiaobian specially brought this problem to everyone Method, if you still don't know how to solve it, then take a look. After

vsftp installed software, links ftp login prompt such a mistake

500 OOPS: can not change directory: /home /

The reason is that CentOS system installation SELinux, because the default is not to enable FTP support, so access is blocked.

Solution

//View SELinux Settings

# getsebool -a| Grep ftp

ftpd_disable_trans –> off

or

ftp_home_dir–>off

//Use the setsebool command to open

# setsebool ftpd_disable_trans 1

or

# setsebool ftp_home_dir 1

//Check if the current state is on state

# getsebool -a| Grep ftp

ftpd_disable_trans –> on

or

ftp_home_dir–>on

//setsebool uses the -P parameter, no need to boot every time Enter this command

# setsebool -P ftpd_disable_trans 1

or

# setsebool -P ftp_home_dir 1

My SELinux settings are as follows

[root@localhost ~]# getsebool -a| Grep ftp

allow_ftpd_anon_write –> off

allow_ftpd_full_access –> off

allow_ftpd_use_cifs –> off

allow_ftpd_use_nfs –> off

ftp_home_dir –> on

ftpd_connect_db –> off

ftpd_use_passive_mode –> off

httpd_enable_ftp_server –> off

tftp_anon_write –> off

# service vsftpd restart

The above is the solution to vsftp 500 OOPS: cannot change directory:/home/, have encountered this problem Users, try this method, I believe it will help you.

Copyright © Windows knowledge All Rights Reserved