When I run the command ‘’ sudo systemctl disable httpd’’ while working on CentOS 8, I face an error:‘’ Failed to execute operation: Access denied’’ I tried to solve it by running with the root user but again another error occurred:‘’ Failed to execute operation: Access denied’’ Could anyone please help me?
Dear Matt
To solve this problem, you should open the access of the service in SElinux. You can also unable the SElinux by running the command below:
setenforce 0
You can read more on How to disable SELinux temporarily or permanently
+8595670151
7 days a week, 24 hours a day