Start networking and exchanging professional insights

Register now or log in to join your professional community.

Follow

How will check selinux status?

user-image
Question added by Muhammad Anzar , DevOps/DevSecOps Architect , Confidential
Date Posted: 2015/02/07
Rajesh Pant
by Rajesh Pant , System Engineer , Tech Mahindra Limited

Check the SELINUX status by executing anyone below :

#sestatus

Or

#getenforce

Or

#cat /etc/selinux/config

 

Hesham Allam
by Hesham Allam , Technical Manager, Business Automation , Advansys-ESC

getenforce command will help you checking whether SElinux enabled, disabled or in permissive mode 

Inayathullah shaik
by Inayathullah shaik , Senior Oracle Apps DBA , AlJeri Transportation Company

#sestatus and #getenforce will show permissive, enabled or disabled mode

Amr Mohamed Abdo Eissa
by Amr Mohamed Abdo Eissa , Senior AIX System Engineer , Data & Transaction Services

#getenforce    display the current selinux status 

Deleted user
by Deleted user

#getenforce, #sestatus, cat /etc/selinux/config

Deleted user
by Deleted user

By typing command sestatus in command shell

Pulkit  Singh
by Pulkit Singh , Redhat Instructor , SPECTRUM NETWORKS PVT.LTD.

you can check the status with the command and by reading a file also:

1.) #getenforce

2.) #vim /etc/selinux/config

#getenforce

or

#vim /etc/selinux/config

Majd Jama'ah
by Majd Jama'ah , Devops Infrastructure Engineer , Opensooq

getenforce or check /etc/selinux/config

PraSanna KuMar ReDdy
by PraSanna KuMar ReDdy , Cloud Engineer , PowerUpCloud Technologies Pvt Ltd.

#Sestatus  ----DIsplay the selinux status

OR

#getenforce

OR

#/etc/selinux/config

syed raza abbas naqvi
by syed raza abbas naqvi , Manager , FLEX DUBAI

go to the /etc/selinux/config

check whether it is enabled or disable

More Questions Like This