From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id 16C05138CC5 for ; Mon, 23 Mar 2015 13:32:46 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id B57C9E092E; Mon, 23 Mar 2015 13:32:35 +0000 (UTC) Received: from plane.gmane.org (plane.gmane.org [80.91.229.3]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 7A589E0912 for ; Mon, 23 Mar 2015 13:32:34 +0000 (UTC) Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1Ya2T0-0005X1-1Z for gentoo-user@lists.gentoo.org; Mon, 23 Mar 2015 14:32:30 +0100 Received: from athedsl-346973.home.otenet.gr ([85.72.210.251]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 23 Mar 2015 14:32:30 +0100 Received: from realnc by athedsl-346973.home.otenet.gr with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 23 Mar 2015 14:32:30 +0100 X-Injected-Via-Gmane: http://gmane.org/ To: gentoo-user@lists.gentoo.org From: Nikos Chantziaras Subject: [gentoo-user] Re: How to poweroff the system from user? Date: Mon, 23 Mar 2015 15:32:12 +0200 Organization: Lucas Barks Message-ID: References: <20150321152656.a82a84b3e8a32c8b68554548@gmail.com> <2098241.ygyfAjpUPx@wstn> <23787818.Bd5keXIqRP@wstn> <40197B34-9C1D-416A-B470-2AE7C945D34E@iki.fi> Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@lists.gentoo.org Reply-to: gentoo-user@lists.gentoo.org Mime-Version: 1.0 Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: athedsl-346973.home.otenet.gr User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.5.0 In-Reply-To: <40197B34-9C1D-416A-B470-2AE7C945D34E@iki.fi> X-Archives-Salt: 2029ef5e-398a-40af-bc84-44a5030ff77f X-Archives-Hash: 22c59f47d423e02dd704fc935a765fc1 On 23/03/15 14:16, Matti Nykyri wrote: >> On Mar 23, 2015, at 14:13, Nikos Chantziaras wrote: >> >>> On 23/03/15 11:46, Peter Humphrey wrote: >>> The consensus seems to be that there's no point in trying to prevent a user >>> from rebooting the machine, and I'm happy to go along with that. >>> >>> The remaining question is: why is the user not allowed to halt it? >> >> Because there's no keyboard shortcut for halt. Only for reboot :-) > > Well you can set init to run halt on ctrl-alt-up arrow -keypress. This is mostly about standard expectations though. No one expects to halt the machine with the vulcan pinch. You press the power button for that, which does a safe shutdown in the majority of setups (unless you have all power management features disabled.) Nowadays, only the reset button is a source of evil, as it's not handled by ACPI (or other power management mechanisms). It really is hardwired into resetting the the mainboard/cpu. So: Rebooting with ctrl+alt+del: safe Halting by pressing the machine's power button: safe Pressing the machine's reset button: Ouch! Of course, back in the bad old days, the power button would simply cut power. There was no ACPI or anything equivalent. But still, even then, there was no keyboard shortcut for "halt" anyway, so people weren't expecting to be able to safely halt a machine without root access. The ability to reboot safely, on the other hand, was always expected.