Disable CentOS 7 selinux

Purpose

--Summary of how to disable selinux for CnetOS 7

Implementation environment

--Hardware environment

item information
OS CentOS 7 (7.8.2003)
hardware Dell Studio 1537
Processor Intel(R) Core(TM)2 Duo CPU P8400 @ 2.26GHz
memory 4 GB DDR3
Graphics unknown

Prerequisites

--The CentOS 7 PC must be built by the method below or according to the method below. -

Prerequisite information

Feeling after reading

--You can disable selinux on CentOS 7 machines.

Details

  1. Execute the following command to make a backup of the selinux configuration file.

    $ sudo cp /etc/selinux/config /etc/selinux/config_org
    
  2. Execute the following command to open the selinux configuration file.

    $ sudo vi /etc/selinux/config
    
  3. Modify the SELINUX part in the opened file as follows. (Note that typo may prevent the CentOS PC from booting)

    SELINUX=disabled
    
  4. Save and close.

  5. Restart your CentOS 7 PC

  6. Execute the following command to output the selinux setting value.

    $ getenforce
    
  7. If the output is as shown below, the setting is complete.

    Disabled
    

Recommended Posts

Disable CentOS 7 selinux
Disable python2.6 ssl3 protocol in centos6
Disable IPv6 on network interface on CentOS Linux 8