Disable Selinux Temporarily

Gabriel Turqos

Active Member
Joined
Mar 11, 2019
Messages
17
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.
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
Back
Top