[CentOS] Allowing non-root users to reboot a workstation
Darr247
darr247 at gmail.comFri Feb 2 16:40:22 UTC 2018
- Previous message: [CentOS] Allowing non-root users to reboot a workstation
- Next message: [CentOS] Allowing non-root users to reboot a workstation
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Did you try adding UserName ALL= NOPASSWD: /sbin/reboot As the last line of their /etc/sudoers files? (replacing UserName with their actual user name, of course.) That should grant them root access to only the /sbin/reboot command (add more commands using comma delimiting). Then they just run $ sudo reboot If you want to require they enter their own password before rebooting, use the line UserName ALL=/sbin/reboot Instead. Use of sudo is recorded in /var/log/secure, if I recall correctly.
- Previous message: [CentOS] Allowing non-root users to reboot a workstation
- Next message: [CentOS] Allowing non-root users to reboot a workstation
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the CentOS mailing list