A regular user in the
wheelgroup can execute
systemctl start serviceand
systemctl stop servicecommands after providing their own password.
[root@rhel-7 ~]# id test uid=1005(test) gid=1006(test) groups=1006(test),10(wheel) [test@rhel-7 ~]$ systemctl stop httpd ==== AUTHENTICATING FOR org.freedesktop.systemd1.manage-units === Authentication is required to manage system services or units. Authenticating as: test Password: ==== AUTHENTICATION COMPLETE ===
[test@rhel-7 ~]$ systemctl start httpd Failed to start httpd.service: Access denied See system logs and 'systemctl status httpd.service' for details.
- Red Hat Enterprise Linux 7
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.