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

Both sides previous revisionPrevious revision
Next revision
Previous revision
selinux:turn_off_selinux [2020/07/24 07:20] – old revision restored (2016/07/11 14:05) 92.220.10.100selinux:turn_off_selinux [2020/07/24 07:20] (current) – old revision restored (2016/07/11 14:09) 92.220.10.100
Line 49: Line 49:
 ===== Grub ===== ===== Grub =====
  
-SELinux is often configured in the grub bootup configuration.  Search **/boot/grub/grub.conf** file using grep and make sure the following line **DOES NOT** appears:+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> <code bash>
Line 57: Line 61:
 If you found lines with selinux=0 or enforcing=0, remove them and save the changes. 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: Reboot the server:
  
selinux/turn_off_selinux.1595575251.txt.gz · Last modified: 2020/07/24 07:20 by 92.220.10.100

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki