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 7BFA2138CC5 for ; Mon, 23 Mar 2015 09:47:06 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 81475E0874; Mon, 23 Mar 2015 09:47:00 +0000 (UTC) Received: from smarthost01b.mail.zen.net.uk (smarthost01b.mail.zen.net.uk [212.23.1.3]) by pigeon.gentoo.org (Postfix) with ESMTP id 7F756E0850 for ; Mon, 23 Mar 2015 09:46:59 +0000 (UTC) Received: from [82.69.80.10] (helo=wstn.localnet) by smarthost01b.mail.zen.net.uk with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.80) (envelope-from ) id 1YZywk-00011G-Cs for gentoo-user@lists.gentoo.org; Mon, 23 Mar 2015 09:46:58 +0000 From: Peter Humphrey To: gentoo-user@lists.gentoo.org Subject: Re: [gentoo-user] How to poweroff the system from user? Date: Mon, 23 Mar 2015 09:46:57 +0000 Message-ID: <23787818.Bd5keXIqRP@wstn> Organization: Society for Retired Gentlefolk User-Agent: KMail/4.14.3 (Linux/3.18.9-gentoo; KDE/4.14.3; x86_64; ; ) In-Reply-To: References: <20150321152656.a82a84b3e8a32c8b68554548@gmail.com> <2098241.ygyfAjpUPx@wstn> 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-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="iso-8859-1" X-Originating-smarthost01b-IP: [82.69.80.10] X-Archives-Salt: 455022bf-6795-41a9-8084-01b3d3365ea6 X-Archives-Hash: 343d3079c7ca106c9b03fcc93fb17969 On Sunday 22 March 2015 14:36:36 Jc Garc=EDa wrote: > 2015-03-22 4:30 GMT-06:00 Peter Humphrey : > > On Saturday 21 March 2015 16:20:17 Jc Garc=EDa wrote: > >> > Interesting. But as I said ealier, I can reboot the system when = I am > >> > a > >> > user by Ctrl+Alt+Delete. The user can reboot the system, but can= 't > >> > shut > >> > down? Strange > >>=20 > >> It's not strange, `man 2 reboot`. It's a defined behavior. > >=20 > > I'm with German here. Being designed that way doesn't stop it being= > > strange. > I see it as a last resource available for rebooting under any > circumstances( Similar to what you can do with Sysrq). >=20 > > Consider: I'm an ordinary user sitting at a terminal. I'm not allow= ed to > > halt the machine, but I am allowed to reboot it into perhaps some q= uite > > other configuration. Or I can keep rebooting it over and again, > > effectively preventing the machine from doing its job. How does tha= t > > make sense? > It doesn't and that's why it's configurable, if you are in a high > security requiring environment, you disable it. The consensus seems to be that there's no point in trying to prevent a = user=20 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? --=20 Rgds Peter.