Linux - How to uninstall disable selinux redhat, Disable selinux on redhat or fedora
How to uninstall disable selinux redhat
How to uninstall or disable selinuxThere are many methods of disabling selinux.
# ls -Z / # ls -Z /etc/
Disable SELinux Permanently
# cat /etc/selinux/config SELINUX=disabled SELINUXTYPE=targeted SETLOCALDEFS=0Where,
SELINUX - can take one of these three values: enforcing - SELinux security policy is enforced. permissive - SELinux prints warnings instead of enforcing. disabled - SELinux is fully disabled. SETLOCALDEFS - Check local definition changes SELINUXTYPE targeted - Only targeted network daemons are protected. strict - Full SELinux protection SETLOCALDEFS - Check local definition changes
Disable SELinux usingGrub Boot Loader
# vi /boot/grub/grub.conf default=0 timeout=5 splashimage=(hd0,0)/boot/grub/splash.xpm.gz hiddenmenu title Enterprise Linux Enterprise Linux Server (2.6.18-92.el5PAE) root (hd0,0) kernel /boot/vmlinuz-2.6.18-92.el5PAE ro root=LABEL=/ rhgb quiet selinux=0 initrd /boot/initrd-2.6.18-92.el5PAE.img title Enterprise Linux Enterprise Linux Server (2.6.18-92.el5) root (hd0,0) kernel /boot/vmlinuz-2.6.18-92.el5 ro root=LABEL=/ rhgb quiet selinux=0 initrd /boot/initrd-2.6.18-92.el5.img
Disable SELinux Temporarily
# cat /selinux/enforce 1 # echo 0 > /selinux/enforce # cat /selinux/enforce 0This will only temporarily disable selinux policies, to permanently disable selinux policies you must edit the selinux configuration file. Instead of using echo command to disable selinux, you can also use setenforce command to disable linux.
# setenforce 0
Disable Only a Specific Service in SELinux - HTTP/Apache
# grep httpd /etc/selinux/targeted/booleans httpd_builtin_scripting=1 httpd_disable_trans=1 httpd_enable_cgi=1 httpd_enable_homedirs=1 httpd_ssi_exec=1 httpd_tty_comm=0 httpd_unified=1
# setsebool httpd_disable_trans 1 # service httpd restartApache or web server is a daemon where we like to avoid selinux most of the times, to disable selinux only for a particular service use the below command.
The topic on Linux - How to uninstall disable selinux redhat is posted by - Math
Hope you have enjoyed, Linux - How to uninstall disable selinux redhatThanks for your time