Skip to main content

selinux not allowing vsftpd accessing homedir

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/

Comments

Popular posts from this blog

Installing Qualcomm Atheros AR8162 Fast Ethernet Driver on Lenovo G400

I was preparing Lenovo G400 laptop for my linux class, after I installed CentOS 6.5 on it, tada,,,, my ethernet adapter won't show up. I checked with ifconfig command but where the hell my eth0 ??. Then i type the command below : # lspci -v 01:00.0 Ethernet controller: Qualcomm Atheros AR8162 Fast Ethernet (rev 10)     Subsystem: Lenovo Device 3802     Flags: bus master, fast devsel, latency 0, IRQ 32     Memory at 90500000 (64-bit, non-prefetchable) [size=256K]     I/O ports at 2000 [size=128]     Capabilities: <access denied>     Kernel driver in use: alx It seem my wired network adapter do not have its driver. After searching on the net then I find this great article. I wrote it out on my blog to make it sure I have notes for the trouble. This is how we troubleshoot it :   First download this file : alx-linux-v2.0.0.6.rar unrar it, run make command, change directory...

All certification

Honor Code Certificate from edX - Linux Foundation