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 DFE51138CC5 for ; Sun, 22 Mar 2015 07:11:49 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id EE1BFE08D3; Sun, 22 Mar 2015 07:11:42 +0000 (UTC) Received: from mail-wi0-f181.google.com (mail-wi0-f181.google.com [209.85.212.181]) (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 C15F3E08BA for ; Sun, 22 Mar 2015 07:11:41 +0000 (UTC) Received: by wibg7 with SMTP id g7so21398306wib.1 for ; Sun, 22 Mar 2015 00:11:40 -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=+a3AGo6IPIqBCz/CKNRRyaOsAvbDh7DOIdynWHxabpc=; b=xuiL3lHME3bYrF6RDOasRID8wa1REOXhSdpznD/5iytymHnLcGjW4mWlHd4Ijs5YST uau7PWKqMDe5IWdBn/JfDaKMEBuWYQIjsRuNVs9BKAfR4rHhTm7pm7cUEGc9psUKajUf bX2W1z9AfB6TpSU0zq3EBUhcYXTwOCpc/r63RTsg1OSr3luxHXfCg3VkiAPJgjlgZ1EO qQqJFjD87AwONivDVGnzKEZlltVMGd44rjRW0DYZLakBBHVWI2VEADPo5q/hs99QRx+B BOy/6liweWI0OtzguA131oBzFCOX//gVxM+lRhhAyZG+DNasCLtk8xFvX4I8r2CWQyps 7OVg== 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 X-Received: by 10.194.78.144 with SMTP id b16mr171190307wjx.18.1427008300634; Sun, 22 Mar 2015 00:11:40 -0700 (PDT) Received: by 10.28.188.133 with HTTP; Sun, 22 Mar 2015 00:11:40 -0700 (PDT) In-Reply-To: <20150322030659.ec90006302b19a7fe9775e1e@gmail.com> References: <20150321152656.a82a84b3e8a32c8b68554548@gmail.com> <20150321203225.GF1082@ca.inter.net> <20150321165842.b6c4a9ca7aa6d9e28b8f9d91@gmail.com> <5761863.ZcMvkPdmqr@navi> <20150322023200.f8517de68133bf9f40e1e01b@gmail.com> <20150322030659.ec90006302b19a7fe9775e1e@gmail.com> Date: Sun, 22 Mar 2015 09:11:40 +0200 Message-ID: Subject: Re: [gentoo-user] How to poweroff the system from user? From: Alexander Kapshuk To: Gentoo mailing list Content-Type: multipart/alternative; boundary=047d7bfd027ad9d8a80511db4272 X-Archives-Salt: a21ddb63-cbf0-4ba3-90c5-7e936fee3d6a X-Archives-Hash: e767037d54267412bf4776f40fc67321 --047d7bfd027ad9d8a80511db4272 Content-Type: text/plain; charset=UTF-8 On Sun, Mar 22, 2015 at 9:06 AM, German wrote: > On Sun, 22 Mar 2015 08:49:54 +0200 > Matti Nykyri wrote: > > > > On Mar 22, 2015, at 8:32, German wrote: > > > > > > > > > /sbin/poweroff says "Must be a superuser" :( > > > > Did you read any of the previous messages? They told you that you have > to have consolekit and polkit installed and configured for this to work! > > Yes, I've read them. However no one explianed how this has to be > accomplished with polkit and consolekit. > > Also the use of sudo is another choice. > > Sudo is just a package? > Yes, it is. qsearch sudo|sed 1q app-admin/sudo Allows users or groups to run commands as other users > > > > If you want every user to be able to shutdown just run this command: > > > > chmod 6755 /sbin/poweroff > > > > -- > > -Matti > > > -- > > > --047d7bfd027ad9d8a80511db4272 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
On Sun, Mar 22, 2015 at 9:06 AM, German = <gentgerman@gm= ail.com> wrote:
On Sun, 22 Mar 2015 08:49:54 +0200
Matti Nykyri <matti.nykyri@iki.fi= > wrote:

> > On Mar 22, 2015, at 8:32, German <gentgerman@gmail.com> wrote:
> >
> >
> > /sbin/poweroff says "Must be a superuser" :(
>
> Did you read any of the previous messages? They told you that you have= to have consolekit and polkit installed and configured for this to work!
Yes, I've read them. However no one explianed how this has to be= accomplished with polkit and consolekit.

=C2=A0Also the use of sudo is another choice.

Sudo is just a package?

Yes, it = is.
qsearch sudo|sed 1q
app-admin/sudo Allows users or groups to run = commands as other users
=C2=A0
>
> If you want every user to be able to shutdown just run this command: >
> chmod 6755 /sbin/poweroff
>
> --
> -Matti


--



--047d7bfd027ad9d8a80511db4272--