User Tools

Site Tools


selinux:turn_off_selinux

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
selinux:turn_off_selinux [2016/07/11 10:57] – created peterselinux:turn_off_selinux [2020/07/24 07:20] (current) – old revision restored (2016/07/11 14:09) 92.220.10.100
Line 41: Line 41:
  
 Finally, reboot the system: Finally, reboot the system:
 +
 +<code bash>
 +reboot
 +</code>
 +
 +
 +===== Grub =====
 +
 +SELinux is often also configured in the grub bootup configuration.  
 +
 +If you can’t locate the /etc/selinux/config file on your system, you can pass disable SELinux by passing it as parameter to the Grub Boot Loader as shown below.
 +
 +Search **/boot/grub/grub.conf** file using grep and make sure the following line **DOES NOT** appears:
 +
 +<code bash>
 +egrep -i 'selinux=0|enforcing=0' /boot/grub/grub.conf
 +</code>
 +
 +If you found lines with selinux=0 or enforcing=0, remove them and save the changes.
 +
 +Example:
 +
 +<file bash /boot/grub/grub.conf>
 +# cat /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
 +</file>
 +Reboot the server:
  
 <code bash> <code bash>
selinux/turn_off_selinux.1468234645.txt.gz · Last modified: 2020/07/15 09:30 (external edit)

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki