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?
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:
You can read more on How to disable SELinux temporarily or permanently
7 days a week, 24 hours a day