Answers for "centos selinux set permissive"

0

centos selinux set permissive

sudo setenforce 0
Posted by: Guest on September-24-2020
0

centos selinux set permissive

# Check current SELinux status
getenforce

# Temporarily set SELinux to permissive mode
sudo setenforce 0

# Verify SELinux is now in permissive mode
getenforce

# Permanently set SELinux to permissive mode
sudo sed -i 's/^SELINUX=.*/SELINUX=permissive/' /etc/selinux/config

# Reboot to apply permanent changes
sudo reboot
Posted by: Ritik Raj on December-03-2024

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language