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 52783138CC5 for ; Thu, 26 Mar 2015 00:51:01 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 6BFCEE0883; Thu, 26 Mar 2015 00:50:55 +0000 (UTC) Received: from mail-pd0-f172.google.com (mail-pd0-f172.google.com [209.85.192.172]) (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 6713CE0874 for ; Thu, 26 Mar 2015 00:50:54 +0000 (UTC) Received: by pdbcz9 with SMTP id cz9so45235381pdb.3 for ; Wed, 25 Mar 2015 17:50:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:from:to:cc:subject:date:message-id:organization:user-agent :in-reply-to:references:mime-version:content-transfer-encoding :content-type; bh=tAsMbTirpwZIB2d+WlVcL8jPm2UBgFxlQFYBWdciAr0=; b=wHKrwRNbpDsfgJvqeCu6ZPE12PeXBi2rFeagExPpgikrY4qCORiNh1sq0UDX6HQ6tS JyuxbFn1xX7Dl3ZJvRVONRo+O/IwHjNz9LrchMBfsG7mp5OAQYyBhF9qweL/Fk5FYIS5 HpDNo7VGHAX5nHE+/JuodeaD5LkFZXESRnTL4BxUUGYNLmjyLIc1q2Y9uK9y2bqfTElF 0ipZY1asPRHg30urN7TIuu9TY4BhdbNC6272PUlSyP+5zOEmelZqbSDaky6fjvIInYYD v0X87ATeDFadmy4XcLTedFpgDwn8WLaRg9J27YDoyt70wf+YrD4dE+KKuCLvR2AkmCdn pP/Q== X-Received: by 10.70.45.102 with SMTP id l6mr16662625pdm.90.1427331053521; Wed, 25 Mar 2015 17:50:53 -0700 (PDT) Received: from gentoo.localnet ([2002:73df:4cce:a8b0:c685:8ff:fe04:dada]) by mx.google.com with ESMTPSA id nj5sm3654864pdb.35.2015.03.25.17.50.52 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 25 Mar 2015 17:50:52 -0700 (PDT) Sender: microcai From: microcai To: gentoo-user@lists.gentoo.org Cc: German Subject: Re: [gentoo-user] How to poweroff the system from user? Date: Thu, 26 Mar 2015 08:53:13 +0800 Message-ID: <15188864.CJZzCyOIOu@gentoo> Organization: avplayer.org User-Agent: KMail/4.14.6 (Linux/3.19.1; KDE/4.14.6; x86_64; ; ) In-Reply-To: <20150322023200.f8517de68133bf9f40e1e01b@gmail.com> References: <20150321152656.a82a84b3e8a32c8b68554548@gmail.com> <5761863.ZcMvkPdmqr@navi> <20150322023200.f8517de68133bf9f40e1e01b@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: quoted-printable Content-Type: text/plain; charset="utf-8" X-Archives-Salt: 8630f834-1715-4a21-96b4-b31e89cc821d X-Archives-Hash: 058c05c6a51905b709d6a70fd474e313 on Sunday 22 March 2015 02:32:00=EF=BC=8CGerman wrote=EF=BC=9A > On Sat, 21 Mar 2015 18:51:58 -0400 >=20 > Fernando Rodriguez wrote: > > On Saturday, March 21, 2015 4:58:42 PM German wrote: > > > On Sat, 21 Mar 2015 16:32:25 -0400 > > >=20 > > > 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 ? > > > >=20 > > > > I'ld say "Don't" : it's contrary to the principles of Unix, > > > > which separate the roles of sysadmin (root) from those of ordin= ary > > > > users. > > > >=20 > > > > To shut down, I first exit Fluxbox via its menu, > > > > then 'su' + root password, then alias 'down' =3D 'shutdown -h n= ow'. > > > > That observes the proper roles + ceremonies (smile). > > >=20 > > > Interesting. But as I said ealier, I can reboot the system when I= am a > > > user > >=20 > > by Ctrl+Alt+Delete. The user can reboot the system, but can't shut = down? > > Strange > >=20 > >=20 > > Either /sbin/poweroff or /usr/sbin/poweroff will do it from a local= > > session (if there's no other users logged in locally). >=20 > /sbin/poweroff says "Must be a superuser" :( then it's high time for you to trash away sysvint and openrc, and try=20= systemd!!!=20 > > Like I said, /sbin is only on the search path for root by default o= n > > gentoo.