linux:selinux
Linux SElinux
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
Dealing with Booleans
Had issues setting up Samba and FTP because of these!
Here is how to check them in RHEL
Listing Booleans
To see settings of all booleans use
semanage boolean -l
Configuring Booleans
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!!
Booleans needed for SAMBA and FTP
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 |
linux/selinux.txt · Last modified: by 127.0.0.1