SELinux

From ConShell
Jump to navigation Jump to search

To disable SELinux, specify the selinux=0 boot option in your boot loader configuration file.

If your boot loader is LILO, open /etc/lilo.conf with a text editor and find the append line. Then add selinux=0 at the end of the quoted append value. If you don't have an append= line then add it like this: append="selinux=0". Exit the editor, saving your changes and run LILO from a shell prompt.

If your boot loader is GRUB, open /boot/grub/menu.lst or /etc/grub.conf with a text editor and add selinux=0 at the end of the line beginning with the word kernel.

After making the change to the LILO or GRUB configuration, reboot.

It is also possible to disable or enable selinux from a kickstart config file. e.g.

selinux --disabled