commands: related to selinux

setenforce - modify the mode SELinux is running in.

# setenforce 1

  or

# setenforce enforcing
   will set selinux in enforcing mode

# setenforce 0

or

# setenforce permissive
will set selinux in permissive mode until next reboot



# getenforce - reports  whether  SELinux is enforcing,
                     permissive, or disabled.

# sestatus -vb
  -v Checks  the  contexts  of  a  files  ,  and  a processes listed in the
      /etc/sestatus.conf file

 -b Display the current state of booleans.

regards,
dhanasekar
_______________________________________________
ILUGC Mailing List:
http://www.ae.iitm.ac.in/mailman/listinfo/ilugc
ILUGC Mailing List Guidelines:
http://ilugc.in/mailinglist-guidelines

Reply via email to