To manage booleans you need to ensure that policycoreutils-python is installed!“ Otherwise you do not have semanage and other tools
yum install policycoreutils-python
to list SELinux Contexts on files you need to use
ls -Z
Had issues setting up Samba and FTP because of these!
Here is how to check them in RHEL
To see settings of all booleans use
semanage boolean -l
To check status of a Boolean
getsebool samba_enable_home_dirs
To change the Booleans
setsebool -P samba_enable_home_dirs on
If you do not put the -P before the boolean the change will not survive a reboot!!
So Far I only have had to enable the home directories. Without setting this booleans you got permissions denied errors!
Boolean | Used for |
---|---|
samba_eanble_home_dirs | Allows smb users to use samba to access their home directories in Linux |
ftp_home_dir | By default vsftpd uses a users home directory without this enabled they can access it |