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 2B135138CC5 for ; Sun, 22 Mar 2015 06:32:12 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 8E84BE08AA; Sun, 22 Mar 2015 06:32:06 +0000 (UTC) Received: from mail-la0-f45.google.com (mail-la0-f45.google.com [209.85.215.45]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 07366E089E for ; Sun, 22 Mar 2015 06:32:04 +0000 (UTC) Received: by labe2 with SMTP id e2so37758565lab.3 for ; Sat, 21 Mar 2015 23:32:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=date:from:to:subject:message-id:in-reply-to:references:mime-version :content-type:content-transfer-encoding; bh=2CmyJcA41KePHeo9S8AOVlcIKurMnKHohQ+RCY5Ekto=; b=IBW7FGp1COEnNAVToDWb+3cVr0rtCUgyVe+P5lzfT/VhbEwkn2ubp80uitT8VuEeLi YeKsHApKx8uyJw3dph0SKi8JnApXeIEVYUwD29OyyiOIm/o/GjZevtZxtoZ4esMM7tJO YetSSeYfvqud0LfP/ldkO2UB7snnsSCb7M7GpDpNCvL770zcsaLysK5avdxJvkVW50x3 7q6TYtrXFa/lTm3EidCRqRkZiDs7Ff+HexTOiXlU3/2rIeuGgmSZLYL3W/CIx1LQnAqX 4fZ1U1WITCkT9WN1azGmjVl0d7uNsoa2p4NtFz60JORSwtnBhyjZW1wcQR3L8BhTpWHP 01+Q== X-Received: by 10.112.51.114 with SMTP id j18mr76940515lbo.97.1427005923362; Sat, 21 Mar 2015 23:32:03 -0700 (PDT) Received: from digger (95-55-6-114.dynamic.avangarddsl.ru. [95.55.6.114]) by mx.google.com with ESMTPSA id xu8sm1866961lab.21.2015.03.21.23.32.02 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 21 Mar 2015 23:32:02 -0700 (PDT) Date: Sun, 22 Mar 2015 02:32:00 -0400 From: German To: gentoo-user@lists.gentoo.org Subject: Re: [gentoo-user] How to poweroff the system from user? Message-Id: <20150322023200.f8517de68133bf9f40e1e01b@gmail.com> In-Reply-To: <5761863.ZcMvkPdmqr@navi> References: <20150321152656.a82a84b3e8a32c8b68554548@gmail.com> <20150321203225.GF1082@ca.inter.net> <20150321165842.b6c4a9ca7aa6d9e28b8f9d91@gmail.com> <5761863.ZcMvkPdmqr@navi> X-Mailer: Sylpheed 3.4.2 (GTK+ 2.24.25; x86_64-pc-linux-gnu) 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=US-ASCII Content-Transfer-Encoding: 7bit X-Archives-Salt: 30366aa5-dac5-48d3-9d24-b4e17b9e07dc X-Archives-Hash: c16f06ca2fcd6ad181a87e57f09c2e4f On Sat, 21 Mar 2015 18:51:58 -0400 Fernando Rodriguez wrote: > 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). /sbin/poweroff says "Must be a superuser" :( > > Like I said, /sbin is only on the search path for root by default on gentoo. > > -- > Fernando Rodriguez > -- German