Monday, April 22, 2024

Rocky 9 : Permanently Disable SELinux

1.Check the Linux OS and Kernel versions
# cat /etc/rocky-release
# uname -r

2.Verify SELinux status.SELinux by default runs in Enforcing mode
# sestatus

3.To disable SELinux grubby command is required
#dnf install -y grubby

4.Execute following command to permanently disable SELinux.
#grubby --update-kernel ALL --args selinux=0

5.Reboot the server
# reboot

6.Verify SELinux status
# sestatus

 

source : https://centlinux.com/permanently-disable-selinux/

Related Posts:

0 comments:

Post a Comment