Solved

Running on startup

Posted on 2008-06-22
3
220 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

NFR key for Veeam Backup for Microsoft Office 365

Veeam is happy to provide a free NFR license (for 1 year, up to 10 users). This license allows for the non‑production use of Veeam Backup for Microsoft Office 365 in your home lab without any feature limitations.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
IP 10.0.1.2 / 255.0.0.0 61 106
NTPD Client Port Usage 12 92
Watching Inbound/Outbound Traffic on Server 4 22
Linux recover lost file deleted by mv 1 31
Little introduction about CP: CP is a command on linux that use to copy files and folder from one location to another location. Example usage of CP as follow: cp /myfoder /pathto/destination/folder/ cp abc.tar.gz /pathto/destination/folder/ab…
SSH (Secure Shell) - Tips and Tricks As you all know SSH(Secure Shell) is a network protocol, which we use to access/transfer files securely between two networked devices. SSH was actually designed as a replacement for insecure protocols that sen…
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…
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
Suggested Courses

737 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