How to turn off SELinux

angryTom
Release: 2020-03-06 15:07:34
Original
3726 people have browsed it

How to turn off SELinux

How to shut down SELinux

1. Temporarily shut down SELinux

Recommended learning: Linux video

setenforce 0   ##设置SELinux 成为permissive模式
               ##setenforce 1 设置SELinux 成为enforcing模式
Copy after login

2. Permanently turn off SELinux

Modify the /etc/selinux/config file

Change SELINUX=enforcing to SELINUX =disabled, restart the machine.

3. Check the SELinux status

◆ /usr/sbin/sestatus -v If the SELinux status parameter is enabled, it is in the open state

SELinux status:   enabled
Copy after login

◆ getenforce You can also use this command to check

SELinux is the Mandatory Access Control (MAC) system provided in the 2.6 version of the Linux kernel. Any access by a process must be checked by the rules defined in selinux, and only if it passes can it be accessed. It is the most outstanding new security subsystem in the history of Linux.

For more related tutorials, please pay attention to PHP Chinese website!

The above is the detailed content of How to turn off SELinux. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template