Solved

Running on startup

Posted on 2008-06-22
3
215 Views
Last Modified: 2013-12-16
Hi guys hope u r well.

Im running Redhat Linux Enterprise 5, and Im having an issue that if I reboot my server, selinux (security enhanced linux) kicks in in Enforcing mode.
After the servers boots up, i can change it to permissive mode by running the following...

setenforce 0

I dont want to have to keep executing this each time my system reboots.

Can some nice person suggest a way I can automate the way of setting selinux to load on startup in Permissive mode by running the following command...

setenforce 0

Any help greatly appreciated.

0
Comment
Question by:Simon336697
3 Comments
 
LVL 32

Assisted Solution

by:Kamran Arshad
Kamran Arshad earned 240 total points
ID: 21843992
Hi,

Use enforcing=0 in your kernel boot line to boot into permissive mode. See /boot/grub/grub.conf for systems which use the grub bootloader. Conversely, setting enforcing=1 boots your system into enforcing mode.

Fedora Core has a new sysconfig file to do this a little more easily. By adding

    SELINUX=permissive

into /etc/sysconfig/selinux. Other options are enforcing and disabled. Note that disabled in here doesn't fully disable the SELinux kernel ( see next question ) but simply boots into permissive mode and skips loading the policy.

This assumes your kernel is built with the CONFIG_SECURITY_SELINUX_DEVELOP flag set which permits booting permissive mode.
0
 
LVL 14

Accepted Solution

by:
arrkerr1024 earned 260 total points
ID: 21850536
rhel5 has /etc/sysconfig/selinux too.   You can just set
SELINUX=disabled
to disable it completely.

running system-config-securitylevel-tui is the text-based gui way to turn it off.
0
 
LVL 1

Author Comment

by:Simon336697
ID: 21852088
Thank you so much to both of you kind people.

0

Featured Post

Highfive + Dolby Voice = No More Audio Complaints!

Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

Join & Write a Comment

You ever wonder how to backup Linux system files just like Windows System Restore?  Well you can use Timeshift in Linux to perform those similar action.  This tutorial will show you how to backup your system files and keep regular intervals. Note…
The purpose of this article is to demonstrate how we can use conditional statements using Python.
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.

747 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now