How to change selinux modes from permissive to enforcing in ubuntu 14.04.
I tried
# vim /etc/selinux/config
SELINUX=enforcing
save and quiet
# init 6
after that … no luck.
when i execute getenforce
command showing Disabled.
selinux
How to change selinux modes from permissive to enforcing in ubuntu 14.04.
I tried
# vim /etc/selinux/config
SELINUX=enforcing
save and quiet
# init 6
after that … no luck.
when i execute getenforce
command showing Disabled.
Best Answer
Simply run
setenforce 1
as root. One way to do this is to runsudo setenforce 1
.You can verify that it succeeded by running
sestatus
and examining the output.