1024programmer Linux How to close SELinux-linux operation and maintenance

How to close SELinux-linux operation and maintenance

How to close SELinux

1. Temporarily close SELinux

Recommended learning: Linux video

setenforce 0 ##Set SELinux to become permissive mode
                ##setenforce 1 Set SELinux to become enforcing mode

2, permanently close SELinux

Modify /etc/selinux/config file

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

3. View SELinux status

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

SELinux status: enabled

◆ getenforce can also use this command to check

SELinux is the enforcement provided in the 2.6 version of the Linux kernel Access Control (MAC) system. The access of any process must pass the rule check defined in selinux, and the access can only be accessed if it passes. 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 close SELinux, please pay attention to other related articles on 1024programmer.com for more information!

This article is from the internet and does not represent1024programmerPosition, please indicate the source when reprinting:https://www.1024programmer.com/how-to-close-selinux-linux-operation-and-maintenance-3/

author: admin

Previous article
Next article

Leave a Reply

Your email address will not be published. Required fields are marked *

Contact Us

Contact us

181-3619-1160

Online consultation: QQ交谈

E-mail: [email protected]

Working hours: Monday to Friday, 9:00-17:30, holidays off

Follow wechat
Scan wechat and follow us

Scan wechat and follow us

Follow Weibo
Back to top
首页
微信
电话
搜索