1 Answer
Enter into the /etc/sudoers
user ALL= NOPASSWD: /usr/bin/systemctl start httpd.service
user ALL= NOPASSWD: /usr/bin/systemctl stop httpd.service
user ALL= NOPASSWD: /usr/bin/systemctl restart httpd.service
user ALL= NOPASSWD: /usr/bin/systemctl status httpd.service
Your Answer
x