12.07.2015 Views

Red Hat Enterprise Linux 5 Administration Unleashed

Red Hat Enterprise Linux 5 Administration Unleashed

Red Hat Enterprise Linux 5 Administration Unleashed

SHOW MORE
SHOW LESS
  • No tags were found...

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Selecting an SE<strong>Linux</strong> Mode 465CAUTIONIf using setenforce, be sure to change the mode in /etc/selinux/config as well sothe change will persist after a reboot.23FIGURE 23.1Selecting the SE<strong>Linux</strong> ModeThe SE<strong>Linux</strong> mode used at boot time can be set in the /etc/selinux/config file. As theroot user, set the SELINUX option to enforcing, permissive, or disabled such as thefollowing:SELINUX=enforcingAfter the reboot, verify the mode was changed with the sestatus command. The outputshould look similar to Listing 23.1.LISTING 23.1SE<strong>Linux</strong> Status with sestatusSE<strong>Linux</strong> status:enabledSE<strong>Linux</strong>fs mount:/selinuxCurrent mode:enforcingMode from config file:enforcingPolicy version: 21Policy from config file: targeted

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!