Howdy,
I'm trying to allow certain users to shutdown the local system. The users have been added to a group called shutdown and the idea is to allow users who are a member of that group to use /sbin/shutdown.
When I add the following line to /usr/local/etc/sudoers it doesn't work:
But if instead I write
it does work.
Am I doing something wrong or is there a reason why localhost doesn't work?
Alphons
I'm trying to allow certain users to shutdown the local system. The users have been added to a group called shutdown and the idea is to allow users who are a member of that group to use /sbin/shutdown.
When I add the following line to /usr/local/etc/sudoers it doesn't work:
Code:
%shutdown [red]localhost[/red]=/sbin/shutdown
But if instead I write
Code:
%shutdown [red]ALL[/red]=/sbin/shutdown
Am I doing something wrong or is there a reason why localhost doesn't work?
Alphons