From mboxrd@z Thu Jan  1 00:00:00 1970
Return-Path: <gentoo-user+bounces-163056-garchives=archives.gentoo.org@lists.gentoo.org>
Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80])
	by finch.gentoo.org (Postfix) with ESMTP id C02D5138CBE
	for <garchives@archives.gentoo.org>; Sat, 21 Mar 2015 20:17:27 +0000 (UTC)
Received: from pigeon.gentoo.org (localhost [127.0.0.1])
	by pigeon.gentoo.org (Postfix) with SMTP id E6C79E0984;
	Sat, 21 Mar 2015 20:17:22 +0000 (UTC)
Received: from mail-we0-f173.google.com (mail-we0-f173.google.com [74.125.82.173])
	(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 C9829E0968
	for <gentoo-user@lists.gentoo.org>; Sat, 21 Mar 2015 20:17:21 +0000 (UTC)
Received: by wegp1 with SMTP id p1so107107037weg.1
        for <gentoo-user@lists.gentoo.org>; Sat, 21 Mar 2015 13:17:20 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=gmail.com; s=20120113;
        h=mime-version:in-reply-to:references:date:message-id:subject:from:to
         :content-type;
        bh=ZQ23hHAA0W39oqgA/GSSWoAfA4BPRp5Bw5Hqvd5lV6Y=;
        b=kzIX1zDJGA7yayIi596xlb9PGvBwvug82G8qaezeLvu7W0nVF+x3ICbDAYPHi3gr6g
         wXMa7DwkuduDOfySlT5OZxA6SOdkn//kOv3lp1gMZ9FKIC7bIrDu/iZMWJgWz0RiUynL
         p9aCWlm60Wo1soXzpPqGgQDldomN3BX4lclKNWqXvn7Pzx68QB2rGDAem06/yfxJvL2G
         RqPMBkXfeH2KLqFw1jJP728HoewV7/80tJ+RzmijYH0c+aNBtA7JGIQtb5O1h1wyaoST
         mQEHAi21+owV71rq1dMQb4u1TnHJwKGSp5jwGMebQxnBBVhIewIQh4er/LD4CkBFglvf
         PEGQ==
Precedence: bulk
List-Post: <mailto:gentoo-user@lists.gentoo.org>
List-Help: <mailto:gentoo-user+help@lists.gentoo.org>
List-Unsubscribe: <mailto:gentoo-user+unsubscribe@lists.gentoo.org>
List-Subscribe: <mailto:gentoo-user+subscribe@lists.gentoo.org>
List-Id: Gentoo Linux mail <gentoo-user.gentoo.org>
X-BeenThere: gentoo-user@lists.gentoo.org
Reply-to: gentoo-user@lists.gentoo.org
MIME-Version: 1.0
X-Received: by 10.194.47.201 with SMTP id f9mr168429741wjn.17.1426969040758;
 Sat, 21 Mar 2015 13:17:20 -0700 (PDT)
Received: by 10.28.2.4 with HTTP; Sat, 21 Mar 2015 13:17:20 -0700 (PDT)
In-Reply-To: <20150321160140.619aeab5cca1e9a0435ae22c@gmail.com>
References: <20150321152656.a82a84b3e8a32c8b68554548@gmail.com>
	<CAJ1xhMUZZLJaubesvW+FW-kf5Fn60ez9X9Sh7vhe3wpt=PY1pw@mail.gmail.com>
	<20150321153934.01966ae8bd27daf7bcc47000@gmail.com>
	<CAGfcS_=CJypwK3zber8TcXXkGbPrjSAWkfcpMwbExMjEW8gwuQ@mail.gmail.com>
	<20150321160140.619aeab5cca1e9a0435ae22c@gmail.com>
Date: Sat, 21 Mar 2015 14:17:20 -0600
Message-ID: <CAGQH77cMh6nUJ2a7GeneQ3cUqThB55aWqbBttov_BtL8Ruv+=w@mail.gmail.com>
Subject: Re: [gentoo-user] How to poweroff the system from user?
From: =?UTF-8?Q?Jc_Garc=C3=ADa?= <jyo.garcia@gmail.com>
To: gentoo-user@lists.gentoo.org
Content-Type: text/plain; charset=UTF-8
X-Archives-Salt: 71f49de1-74df-43fb-9ab2-793861b45106
X-Archives-Hash: e1c8ee03c6ffa0a98c70c3c087125273

2015-03-21 14:01 GMT-06:00 German <gentgerman@gmail.com>:
> On Sat, 21 Mar 2015 15:47:16 -0400
> Rich Freeman <rich0@gentoo.org> wrote:
>
>> On Sat, Mar 21, 2015 at 3:39 PM, German <gentgerman@gmail.com> wrote:
>> >
>> > No, I am trying to shutdown from a console
>>
>> Well, the old answer would be that you need to use sudo to run it, as
>> shutting down is a privileged operation.
>>
>> I suspect that the new answer is that with appropriate
>> policykit/consolekit/etc settings you can probably allow somebody
>> sitting at a physical console to shut down the system, or any
>> logged-in user if you prefer.  However, I haven't actually set that up
>> myself.
>
> Well, I am the only one sitting at the console :) Are there any key combination which allows that? I can reboot even if I am a user with Ctrl+Alt+Delete
>>

Just use sudo to allow your user to shutdwon without
password(suders(5) manpage is your friend), and put an  alias in your
bashrc:
alias poweroff="sudo /sbin/poweroff"