近期,搭建一个虚拟用户的ftp站点,用vsftpd
搭建完成后,发现可正常通过验证 cat /var/log/secure 为granted access
但是输入密码后就是无法登陆,老是显示输入密码登陆框,查看日志提示为selinux阻止
#getsebool -a | grep ftp
allow_ftpd_anon_write --> off
allow_ftpd_full_access --> offallow_ftpd_use_cifs --> offallow_ftpd_use_nfs --> offallow_tftp_anon_write --> offftp_home_dir --> onftpd_connect_db --> offftpd_disable_trans --> onftpd_is_daemon --> onhttpd_enable_ftp_server --> offtftpd_disable_trans --> off然后设置
setsebool -P ftp_home_dir 1即可