On Wed, 27 Feb 2019, Rich Shepard wrote:
Looking at /etc/sudoers I see the example:
%users localhost=/sbin/shutdown -h now
Will this permit the Sony Vaio user to halt the laptop? I thought I
had her set up to do this but it did not work today. If the above
line allows everyone in the users group to shutdown the machine I'll
modify the config file to use it.
Rich,
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.
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
--
Paul Heinlein
[email protected]
45°38' N, 122°6' W
_______________________________________________
PLUG mailing list
[email protected]
http://lists.pdxlinux.org/mailman/listinfo/plug