[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: allow user shutdown
- To: misc_(_at_)_openbsd_(_dot_)_org
- Subject: Re: allow user shutdown
- From: James Earl <jamesd_(_dot_)_earl_(_at_)_gmail_(_dot_)_com>
- Date: Mon, 28 Feb 2005 08:30:54 -0700
- Reply-to: James Earl <jamesd_(_dot_)_earl_(_at_)_gmail_(_dot_)_com>
On Mon, 28 Feb 2005 10:46:39 +0100, Paul de Weerd <weerd_(_at_)_weirdnet_(_dot_)_nl> wrote:
> On Sun, Feb 27, 2005 at 08:26:48PM -0700, James Earl wrote:
> | Hi,
> | What's the best way to allow a regular user to use the shutdown
> | command other than sudo?
> | I basically would like to use the shutdown command without needing to
> | enter a password or be prompted further (I guess sudo is an option if
> | you can have it work without a password???).
> Apart from the solutions already offered to you by other readers,
> depending on your situation, you may be able to set machdep.kbdreset=1
> with sysctl(8). Not all arches support this, but if your hardware
> does, all one needs is physical access to the machine and press
> Ctrl-Alt-Del to bring the machine down.
Thanks, that's a good trick to know! I ended up using a simple script
that prompts the user using xmessage, and then allows them to either
shutdown or restart the machine.
Is there any way to get the power button on a notebook to power down
the machine with APM? Or is this exclusive to ACPI only?
Visit your host, monkey.org