On Mon, Dec 22, 2008 at 03:31:27PM +0100, Gilles wrote:
>
> Hello
> 
> I'd like to make it easier for my dad to shutdown a server. Instead of
> having him plug a keyboard, log on as root (with a complicated
> password) and finally type "shutdown -h now", is it possible to assign
> this command to some unused key like eg. Syst? Even better, send this
> command only if the key is hit eg. three times within 2 seconds?
> 
> Thank you.
> 

What I'd do is use sudo to enable him to shutdown. Then I'd add this
to /etc/rc.local:

kbdcontrol -f 10 "sudo shutdown -h now"

So, pressing F10 & hitting return will shut the machine down.

Regards,

-- 

 Frank 


 Contact info: http://www.shute.org.uk/misc/contact.html 

_______________________________________________
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"

Reply via email to