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 3FD70138CBE for ; Sat, 21 Mar 2015 22:52:33 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 9547FE0956; Sat, 21 Mar 2015 22:52:27 +0000 (UTC) Received: from cdptpa-oedge-vip.email.rr.com (cdptpa-outbound-snat.email.rr.com [107.14.166.232]) by pigeon.gentoo.org (Postfix) with ESMTP id 8F828E0921 for ; Sat, 21 Mar 2015 22:52:26 +0000 (UTC) Received: from [142.196.200.180] ([142.196.200.180:35258] helo=navi.localnet) by cdptpa-oedge03 (envelope-from ) (ecelerity 3.5.0.35861 r(Momo-dev:tip)) with ESMTP id DA/B1-04116-A26FD055; Sat, 21 Mar 2015 22:52:26 +0000 From: Fernando Rodriguez To: gentoo-user@lists.gentoo.org Subject: Re: [gentoo-user] How to poweroff the system from user? Date: Sat, 21 Mar 2015 18:51:58 -0400 Message-ID: <5761863.ZcMvkPdmqr@navi> User-Agent: KMail/4.14.3 (Linux/3.19.1; KDE/4.14.3; x86_64; ; ) In-Reply-To: <20150321165842.b6c4a9ca7aa6d9e28b8f9d91@gmail.com> References: <20150321152656.a82a84b3e8a32c8b68554548@gmail.com> <20150321203225.GF1082@ca.inter.net> <20150321165842.b6c4a9ca7aa6d9e28b8f9d91@gmail.com> 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: 7Bit Content-Type: text/plain; charset="us-ascii" X-RR-Connecting-IP: 107.14.168.142:25 X-Cloudmark-Score: 0 X-Archives-Salt: dc026e3d-c77d-465f-8bdd-06e7385e224f X-Archives-Hash: 018b3844084bc8e89de72b5de6de4299 On Saturday, March 21, 2015 4:58:42 PM German wrote: > On Sat, 21 Mar 2015 16:32:25 -0400 > Philip Webb wrote: > > > 150321 German wrote: > > > If I run poweroff from root, the system shuts down. > > > When I run poweroff from user -- command not found. > > > How to shut down the system from user ? > > > > I'ld say "Don't" : it's contrary to the principles of Unix, > > which separate the roles of sysadmin (root) from those of ordinary users. > > > > To shut down, I first exit Fluxbox via its menu, > > then 'su' + root password, then alias 'down' = 'shutdown -h now'. > > That observes the proper roles + ceremonies (smile). > > 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 > > Either /sbin/poweroff or /usr/sbin/poweroff will do it from a local session (if there's no other users logged in locally). Like I said, /sbin is only on the search path for root by default on gentoo. -- Fernando Rodriguez