1

How could we allow non-root users to control a systemd service

Need to configure non-root users to control a system.d service. How fix the issue

jacob
asked Feb 7, 2020
edited
1 Answer
2

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
View More
linuxhelp
answered Feb 7, 2020
Your Answer
||||
x
 
100:0

Related Tutorials in How could we allow non-root users to control a systemd service

Related Tutorials in How could we allow non-root users to control a systemd service

Related Forums in How could we allow non-root users to control a systemd service

Related Forums in How could we allow non-root users to control a systemd service