SELinux is an expansion preemptive access control security module for Linux that can control programs to access only specific files. So how does SELinux view and shut down? The following small series will introduce you how to view and close SELinux under Linux.
First, the state command to view the SELinux:
1, /usr /sbin /sestatus -v ## if SELinux status parameter is enabled is the open state
SELinux status: enabled
2, getenforce ## can also use this command to check
Second, close SELinux method:
1, temporarily shut down (do not restart the machine): < Br>
The code is as follows:
setenforce 0 #Set SELinux to be permissive mode
#setenforce 1 Set SELinux to enforcing mode
2, modify the configuration file needs to restart the machine :
Modify /etc/selinux/config file
Change SELINUX=enforcing to SELINUX=disabled
Restart the machine
The above is under Linux The method of viewing and closing SELinux is introduced. If you don't know how to view SELinux, or if you want to shut down SELinux, you can try the methods described in this article to solve your problem easily.
Linux command smbclient is mainly used to store and read the client program on the server, and parse
Linux system can use the history command to view the history of instructions. In order to improve th
cc attacks the main attack page, simulating many users to constantly visit the webs
sysstat is a software package with various practical system tools, such as system p
Linux automatic installation operation example
How to install Guake terminal to Ubuntu system
What should I do if ORA-12528 reports an error when building DataGuard in Linux?
How does the CentOS system remove IP from the Fail2ban blacklist
Linux Zsh command usage example
What if CentOS uses MPlayer without sound?
How Linux uses shell scripts to defend against small amounts of ddos attacks
How to install and configure Apache
How Linux can improve the copying efficiency of large files
What are the common commands for Linux rookie?
Ubuntu removes the emulator failure prompt "the android "XXX" virtual solution
Get the specific steps of the xp system can not shut down the fault
The Win8 RP version download page has appeared on the Microsoft MSDN subscription site
How to view the network connection status of Windows 7
Windows 7 Load Virtual PC Image Tips
Windows 8 system starts to add shutdown button tutorial
The Win7 system starts the attachment menu without the "recorder" function. How to add the
How to create various forms of network under Win7 system
What should I do if the Win10 camera does not open?