Gentoo Archives: gentoo-user

From: Nikos Chantziaras <realnc@×××××.com>
To: gentoo-user@l.g.o
Subject: [gentoo-user] Re: How to poweroff the system from user?
Date: Mon, 23 Mar 2015 13:32:46
Message-Id: mep4ks$pmb$1@ger.gmane.org
In Reply to: Re: [gentoo-user] Re: How to poweroff the system from user? by Matti Nykyri
1 On 23/03/15 14:16, Matti Nykyri wrote:
2 >> On Mar 23, 2015, at 14:13, Nikos Chantziaras <realnc@×××××.com> wrote:
3 >>
4 >>> On 23/03/15 11:46, Peter Humphrey wrote:
5 >>> The consensus seems to be that there's no point in trying to prevent a user
6 >>> from rebooting the machine, and I'm happy to go along with that.
7 >>>
8 >>> The remaining question is: why is the user not allowed to halt it?
9 >>
10 >> Because there's no keyboard shortcut for halt. Only for reboot :-)
11 >
12 > Well you can set init to run halt on ctrl-alt-up arrow -keypress.
13
14 This is mostly about standard expectations though. No one expects to
15 halt the machine with the vulcan pinch. You press the power button for
16 that, which does a safe shutdown in the majority of setups (unless you
17 have all power management features disabled.)
18
19 Nowadays, only the reset button is a source of evil, as it's not handled
20 by ACPI (or other power management mechanisms). It really is hardwired
21 into resetting the the mainboard/cpu.
22
23 So:
24
25 Rebooting with ctrl+alt+del: safe
26 Halting by pressing the machine's power button: safe
27 Pressing the machine's reset button: Ouch!
28
29 Of course, back in the bad old days, the power button would simply cut
30 power. There was no ACPI or anything equivalent. But still, even then,
31 there was no keyboard shortcut for "halt" anyway, so people weren't
32 expecting to be able to safely halt a machine without root access. The
33 ability to reboot safely, on the other hand, was always expected.