Hi
I will start off with " I am new to Linux (Centos)" version I am running is 6.5
Anyway I am currently completing a course in Hadoop and of course I have the challenge of teaching my self Centos @ the same time
As part of my installation of Java & Hadoop I have been advised to set SELINUX=disabled with in the /etc/selinux/config
previously I had done this and then I could not restart the server it threw up an error after I had set SELINUX=disable. I tried fixing this and after about 40 mins I restored my VM from a previous state.
my question is as follows.
If I have been recommended to set SELINUX=disable and I proceed on with the installs - what happens if I reboot the server as at no point in time in the documents I have from tutor does it tell me to restate SELINUX to "targeted"
Any help would be much appreciated
Eamonn
Centos - SELINUX=DISABLEd
-
- Posts: 18
- Joined: 2018/01/12 01:36:06
Re: Centos - SELINUX=DISABLEd
Hi,
I've never set the system policy from there, leave that config file alone. Go to /etc/sysconfig/ and edit file selinux there.
Can also set a kernel parameter selinux=0.
Let me know if that helps.
I've never set the system policy from there, leave that config file alone. Go to /etc/sysconfig/ and edit file selinux there.
Can also set a kernel parameter selinux=0.
Let me know if that helps.
-
- Posts: 18
- Joined: 2018/01/12 01:36:06
Re: Centos - SELINUX=DISABLEd
Also, make sure it reads like your title, "disabled", not like body of message "disable" (singular).
To remove context from filesystem if not using SELinux:
cd /
find . -print0 |xargs -0 -n 1 setfattr -h -x security.selinux
To remove context from filesystem if not using SELinux:
cd /
find . -print0 |xargs -0 -n 1 setfattr -h -x security.selinux
Re: Centos - SELINUX=DISABLEd
German speaking forum for Fedora and CentOS: https://www.fedoraforum.de/
Re: Centos - SELINUX=DISABLEd
Please run yum update ASAP. CentOS 6.5 is old, unpatched and extremely insecure. Update to 6.9 as soon as possible.I will start off with " I am new to Linux (Centos)" version I am running is 6.5
It's also not necessary to disable it, if you MUST run without it, then set it to permissive. That has the advantage that it will do all the checks required and log the problems so that they can be solved but then it will allow the access anyway. It also maintains all the file labels and contexts and you can flip it back to enforcing mode with a single command - setenforce 0 - without needing a reboot.
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke
-
- Posts: 18
- Joined: 2018/01/12 01:36:06
Re: Centos - SELINUX=DISABLEd
Last two posts are absolutely correct. Selinux should be running when possible. My answer was based on what I assumed were course specific setup - which would be intended to allow complete focus on learning the hadoop configuration, after which your rulesets for Selinux would be implemented in a production system.
There are few instances where Selinux cannot be deployed (usually conflicts with certain IPS deployments). I will keep in mind best practice when posting. Good luck in your learning endeavors!
There are few instances where Selinux cannot be deployed (usually conflicts with certain IPS deployments). I will keep in mind best practice when posting. Good luck in your learning endeavors!