Account Links: Cart | Your Account | Logout

Skip to content

Red Hat Knowledgebase

Red Hat Knowledgebase Search:

Updated Within the Last:

New Solutions within the last day New Solutions within the last week New Solutions within the last month

Browse by topics:


Click to View a Topic
Red Hat Enterprise Linux > SELinux > Issue <<  1 of 18 >>

Solution Tools:


Email a Solution Postcard Printer version Submit a comment on this answer Update notifications Request an answer Back

Article Reference

Article ID: 4844
Last update: 05-04-05
Issue:
How do I turn SELinux off in Red Hat Enterprise Linux 4?
Resolution:

Red Hat Global Support Services recommends only disabling SELinux if you are certain you will never want to run SELinux in the future. Files created with SELinux disabled will not have the information necessary to function when SELinux is enabled. Please see the article "How do I enable enforcing or permissive mode for SELinux" if you would like to stop SELinux from enforcing its policy, but still have SELinux running.

The tool system-config-securitylevel may be used to turn SELinux on or off by checking the Enabled tickbox. You will have to select the SELinux tab to see this option. The system must be rebooted for the change to take effect.

The tool will look similar to the following:

Secruity Level Configuration

SELinux may also be disabled by editing /etc/selinux/config and by setting the SELINUX value to be SELINUX=Disabled and rebooting the machine.

SELinux may also be disabled by appending the line "selinux=0" to the kernel boot options. A GRUB example may be as follows:

 
title Red Hat Enterprise Linux ES (2.6.9-5.EL)
        root (hd0,0)
        kernel /vmlinuz-2.6.9-5.EL ro root=/dev/VolGroup00/LogVol00 rhgb quiet selinux=0
        initrd /initrd-2.6.9-5.EL.img


How well did this entry answer your question?


good wrong incomplete out of date
Red Hat Enterprise Linux > SELinux > Issue <<   1  of  18  >>