littleaotearoa Btw, to shut down selinux follow these steps:
The first thing to do is to check the status of SELinux on your system, and you can do this by running the following command:
sestatus
Next, proceed to disabling SELinux on your system, this can be done temporarily or permanently depending on what you want to achieve.
To disable SELinux temporarily, issue the command below as root:
echo 0 > /selinux/enforce
Alternatively, you can use the setenforce tool as follows:
setenforce 0
Else, use the Permissive option instead of 0 as below:
setenforce Permissive
These methods above will only work until the next reboot.
Disable SELinux Permanently
To permanently disable SELinux, use your favorite text editor to open the file /etc/sysconfig/selinux as follows:
vi /etc/sysconfig/selinux
or
nano /etc/sysconfig/selinux
Then change the directive SELinux=enforcing to SELinux=disabled
Then, save and exit the file, for the changes to take effect, you need to reboot your system and then check the status of SELinux using sestatus command as shown:
sestatus
In conclusion, we moved through the simple steps you can follow to disable SELinux on CentOS/RHEL. There is nothing much to cover under this topic.
I hope you get the results you want. Best regards.