How can i disable Linux ?

All general questions related to SELinux

Moderator: xeont

How can i disable Linux ?

Postby ethan » Wed Jul 24, 2013 5:54 pm

Hi Guys, I recently switched to SELinux and I feel that it is complicated. Can anyone help to disable it?
ethan
 
Posts: 1
Joined: Mon Jul 22, 2013 6:34 pm

Re: How can i disable Linux ?

Postby dom » Thu Jul 25, 2013 7:27 pm

Edit /etc/selinux/config:

Change "SELINUX=enforcing" to "SELINUX=disabled", and reboot
dom
 
Posts: 5
Joined: Thu Jul 25, 2013 6:31 pm

Re: How can i disable Linux ?

Postby harry » Fri Jul 26, 2013 1:19 pm

It is quiet natural that the SELinux can cause certain problems during the installation of certain software. To get rid of this problem, you can disable SElinux temporarily or permanently. However, it is not wise to disable SELinux permanently.
It is easy to disable SElinux from command line by setenforce command:
Code:
# setenforce 0
This will disable SElinux temporarily until your system will reboot or you enable SElinux with:
Code:
# setenforce 1
The commands above are same as disabling SElinux with:
Code:
# echo 0 > /selinux/enforce
Permanently disable SElinux
To permanently disable SElinux you need to edit SElinux's config file /etc/selinux/config and add/alter line disable it:
Code:
SELINUX=disabled


Hope this will solve your problem
harry
 
Posts: 1
Joined: Mon Jul 22, 2013 6:14 pm

Re: How can i disable Linux ?

Postby zohaa » Tue Oct 28, 2014 10:35 am

Is there any simple command that will help to find the status of SELinux ?
zohaa
 
Posts: 1
Joined: Tue Oct 28, 2014 10:29 am

Re: How can i disable Linux ?

Postby xeont » Fri Oct 31, 2014 4:43 pm

zohaa wrote:Is there any simple command that will help to find the status of SELinux ?


Code: Select all
getenforce


will give you the status of SELinux

Disable, Permissive or Enforcing
xeont
 
Posts: 13
Joined: Wed Jun 26, 2013 4:13 am

Re: How can i disable Linux ?

Postby dafadoorrr » Sat Mar 07, 2015 10:43 am

Is there any simple command that will help to find the status of SELinux ?

_____________________
dafadoorrr
 
Posts: 1
Joined: Sat Mar 07, 2015 9:49 am


Return to General Questions

Who is online

Users browsing this forum: No registered users and 1 guest