Re: [6.3] Assigning shutdown to eg. Syst?

2008-12-23 Thread Frank Shute
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

Re: [6.3] Assigning shutdown to eg. Syst?

2008-12-23 Thread perryh
The only other thing being in group operator lets you run, apart from what you've added into /etc/devfs.{conf,rules} is /sbin/mksnap_ffs .. In a default devfs config, it grants read permission to the disk devices (presumably to enable running dump(8)).

Re: [6.3] Assigning shutdown to eg. Syst?

2008-12-23 Thread Ian Smith
On Tue, 23 Dec 2008, per...@pluto.rain.com wrote: The only other thing being in group operator lets you run, apart from what you've added into /etc/devfs.{conf,rules} is /sbin/mksnap_ffs .. In a default devfs config, it grants read permission to the disk devices (presumably to

Re: [6.3] Assigning shutdown to eg. Syst?

2008-12-23 Thread Mike Clarke
On Tuesday 23 December 2008, Ian Smith wrote: Doesn't sound too risky if Gilles trusts him enough to run shutdown :) For a desktop there's no logic in restricting the shutdown command to only trusted users anyway. An untrusted user can't be prevented from shutting down by pulling the plug,

[6.3] Assigning shutdown to eg. Syst?

2008-12-22 Thread Gilles
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

Re: [6.3] Assigning shutdown to eg. Syst?

2008-12-22 Thread Polytropon
On Mon, 22 Dec 2008 15:31:27 +0100, Gilles gilles.gana...@free.fr 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

Re: [6.3] Assigning shutdown to eg. Syst?

2008-12-22 Thread Gilles
On Mon, 22 Dec 2008 16:09:02 +0100, Polytropon free...@edvax.de wrote: I have a similar setting, but it requires X, WindowMaker and a Sun Type 6 USB keyboard. :-) Thanks for the input, but this server is text-only. I'll try to find how FreeBSD is configured so that ALT-CTRL-DEL maps to reboot,

Re: [6.3] Assigning shutdown to eg. Syst?

2008-12-22 Thread Dan Nelson
In the last episode (Dec 22), Gilles said: On Mon, 22 Dec 2008 16:09:02 +0100, Polytropon free...@edvax.de wrote: I have a similar setting, but it requires X, WindowMaker and a Sun Type 6 USB keyboard. :-) Thanks for the input, but this server is text-only. I'll try to find how FreeBSD is

Re: [6.3] Assigning shutdown to eg. Syst?

2008-12-22 Thread Glen Barber
On Mon, Dec 22, 2008 at 9:31 AM, Gilles gilles.gana...@free.fr 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

Re: [6.3] Assigning shutdown to eg. Syst?

2008-12-22 Thread Ian Smith
On Mon, 22 Dec 2008 20:53:39 +0100 Gilles gilles.gana...@free.fr wrote: On Mon, 22 Dec 2008 16:09:02 +0100, Polytropon free...@edvax.de wrote: I have a similar setting, but it requires X, WindowMaker and a Sun Type 6 USB keyboard. :-) :) Thanks for the input, but this server is

Re: [6.3] Assigning shutdown to eg. Syst?

2008-12-22 Thread Robert Huff
Ian Smith writes: Or let your dad login with his own account and password. Just add him to the operator group so that he can run /sbin/shutdown. If that's the only priveledged command he needs ... is there a reason sudo isn't a better answer? Robert Huff

Re: [6.3] Assigning shutdown to eg. Syst?

2008-12-22 Thread Ian Smith
On Tue, 23 Dec 2008, Robert Huff wrote: Ian Smith writes: Or let your dad login with his own account and password. Just add him to the operator group so that he can run /sbin/shutdown. If that's the only priveledged command he needs ... is there a reason sudo isn't a