Re: Allowing non-root users to reboot a workstation

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



That seems to have worked on my own test account - I applied it to the user
having the issue and asked for his feedback when he gets a chance.

Thanks!

On Fri, Feb 2, 2018 at 11:40 AM, Darr247 <darr247@xxxxxxxxx> wrote:

> 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.
>
> _______________________________________________
> CentOS mailing list
> CentOS@xxxxxxxxxx
> https://lists.centos.org/mailman/listinfo/centos
>
_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
https://lists.centos.org/mailman/listinfo/centos



[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]


  Powered by Linux