Solved

Running on startup

Posted on 2008-06-22
3
221 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

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Setting up Secure Ubuntu server on VMware 1.      Insert the Ubuntu Server distribution CD or attach the ISO of the CD which is in the “Datastore”. Note that it is important to install the x64 edition on servers, not the X86 editions. 2.      Power on th…
1. Introduction As many people are interested in Linux but not as many are interested or knowledgeable (enough) to install Linux on their system, here is a safe way to try out Linux on your existing (Windows) system. The idea is that you insta…
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial

724 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