[PLUG] Allow user to shutdown host
Rich Shepard
rshepard at appl-ecosys.com
Wed Feb 27 22:19:48 UTC 2019
On Wed, 27 Feb 2019, Paul Heinlein wrote:
> The sudoers(5) man page states,
> Also, the host name “localhost” will only match if that is the actual host
> name, which is usually only the case for non-networked systems.
Paul,
Ah, I forgot to look at that man page.
> You'll want to replace "localhost" with either "ALL" or the exact hostname of
> the machine in question, e.g.,
> %users ALL=/sbin/shutdown -h now
As this will be on only one machine ALL will do.
Can I set an alias so when she exits X11 to a console all she needs to type
is
sudo halt
and this will invoke /sbin/shutdown -h now? Gotta' keep in simple here.
Thanks,
Rich
More information about the PLUG
mailing list