📎 AI Summary:
The thread discusses temporarily disabling SELinux on a Linux system, particularly CentOS. The original poster wants a temporary disable that re-enables after reboot, and a detailed step-by-step method is provided, including checking SELinux status, setting it to permissive mode, editing the config file, and rebooting. Contributors also mention differences across Linux distributions and alternatives, with the overall tone being technical and solution-oriented.

Gabriel Turqos

Active Member
Member details
Joined
Mar 11, 2019
Messages
17
Thread Author #1
I want to dislabe SeLinux but this will be temporary where after reboot it should be enabled.
 

Solution
Run through these steps to disable SeLinux:

  1. Log in to your server.
  2. Check the current SELinux status, run: sestatus.
  3. To disable SELinux on CentOS 7 temporarily, run: sudo setenforce 0.
  4. Edit the /etc/selinux/config file and set the SELINUX to disabled.
  5. Reboot the Linux server.

RuskinF

Member
Member details
Joined
Feb 17, 2020
Messages
87
Run through these steps to disable SeLinux:

  1. Log in to your server.
  2. Check the current SELinux status, run: sestatus.
  3. To disable SELinux on CentOS 7 temporarily, run: sudo setenforce 0.
  4. Edit the /etc/selinux/config file and set the SELINUX to disabled.
  5. Reboot the Linux server.
 

Solution