On 12/27/2011 10:40 PM, Gabriel Gunderson wrote:
>> anyone can give sample on creating a linux account for the purpose of
>> > shutdown and restart only. Thanks
> 
> Create a user and give them access to the poweroff and reboot commands (but
> no others) via sudo.
> 
> man visudo

Also, if you want to restrict the user to JUST those specific commands,
I'd look into a limited shell, like lshell
(http://lshell.ghantoos.org/).  It takes a little trial and error to get
the config right, but it works pretty well.

Lloyd

/*
PLUG: http://plug.org, #utah on irc.freenode.net
Unsubscribe: http://plug.org/mailman/options/plug
Don't fear the penguin.
*/

Reply via email to