enabling selinux policy for ftp access
check the current status of selinux policy :
# getenforce
check the ftp policy status :
# getsebool -a | grep ftp
which usually returns the following output :
allow_ftpd_anon_write –> off
allow_ftpd_full_access –> off
allow_ftpd_use_cifs –> off
allow_ftpd_use_nfs –> off
allow_tftp_anon_write –> off
ftp_home_dir --> off (change that to on)
ftpd_disable_trans –> off
ftpd_is_daemon –> on
httpd_enable_ftp_server –> off
tftpd_disable_trans –> off
to change selinux policy to allow vsftpd accessing homedir
type the command below in terminal
# setsebool -P ftp_home_dir=1
source :
http://docs.fedoraproject.org/en-US/Fedora/13/html/Managing_Confined_Services/chap-Managing_Confined_Services-File_Transfer_Protocol.html
http://www.gnutoolbox.com/solved-500-oops-change-directoryhomeuser-vsftp-centos/
check the current status of selinux policy :
# getenforce
check the ftp policy status :
# getsebool -a | grep ftp
which usually returns the following output :
allow_ftpd_anon_write –> off
allow_ftpd_full_access –> off
allow_ftpd_use_cifs –> off
allow_ftpd_use_nfs –> off
allow_tftp_anon_write –> off
ftp_home_dir --> off (change that to on)
ftpd_disable_trans –> off
ftpd_is_daemon –> on
httpd_enable_ftp_server –> off
tftpd_disable_trans –> off
to change selinux policy to allow vsftpd accessing homedir
type the command below in terminal
# setsebool -P ftp_home_dir=1
source :
http://docs.fedoraproject.org/en-US/Fedora/13/html/Managing_Confined_Services/chap-Managing_Confined_Services-File_Transfer_Protocol.html
http://www.gnutoolbox.com/solved-500-oops-change-directoryhomeuser-vsftp-centos/
Comments
Post a Comment