Submitted by bobbitt on Tue, 08/27/2013 - 13:43
Getting SELinux working can be tough. Here are some commands I found useful.
Is SELinux enabled?
sestatus
Disable SELinux without reboot (and only until the next reboot):
setenforce Permissive
Disable SELinux persistent:
vi /etc/sysconfig/selinux
SELinux=disabled
Show the security context of a file:
ls -lZ
Copy the context from one file to another:
chcon --reference=<source> <destination>
Included below are some commands that I have found, created or tweaked to help make life easier along the way.
Getting SELinux working can be tough. Here are some commands I found useful.
Is SELinux enabled?
Deactivate all inactive users in the last year:
Yes, some distros still use rpm.
Extract files from an RPM:
Get into the correct directory:
cd /etc/pki/tls/certs