Get the App
SLTechnology News&Howtos  ›  Servers  › 

Use the setenforce command of linux to set the SELinux state

Shulou Source: shulou.com Published: 2022-06-02 18:59:28 09月22日 Update

This article mainly introduces the use of linux setenforce command to set SELinux status, the article is very detailed, has a certain reference value, interested friends must read it!

The setenforce command is used to turn SELinux on and off.

Syntax format: setenforce [parameters]

Common parameters:

Reference example

Enable SELinux:

[root@linuxcool ~] # setenforce 1

Turn off SELinux:

[root@linuxcool ~] # setenforce 0

The above is all the contents of setting the SELinux status using linux's setenforce command, thank you for reading! Hope to share the content to help you, more related knowledge, welcome to follow the industry information channel!

Tags: Commands status content parameters references values interests examples guys buddies commonly used more formats knowledge articles industry grammar information information channels channels Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno macOS Microsoft OPPO Reno Redmi Xiaomi