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 4008A138CC4 for ; Sun, 29 Mar 2015 11:55:32 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 52B29E08F8; Sun, 29 Mar 2015 11:55:26 +0000 (UTC) Received: from mail-wg0-f54.google.com (mail-wg0-f54.google.com [74.125.82.54]) (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 26069E08A8 for ; Sun, 29 Mar 2015 11:55:25 +0000 (UTC) Received: by wgdm6 with SMTP id m6so142828932wgd.2 for ; Sun, 29 Mar 2015 04:55:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to:content-type:content-transfer-encoding; bh=E/wqbH56org6AhQNx/f3oZdRfJi84U3E9PNwmV8n+XY=; b=ePRYOmYqxxxBkPjEEW5QezZ31QWxpw1kHatBs15u2M6tVGA+BBtexQkWiFJyPG/kAn lJ0Z679xZpJZA74Q5wIo3O7XYu+EY2+irv3LR/1zel7zE/duj6uAptzNHQwxT8MiXnfj 18TLv8FjVilD8+lNYvTeRqLXPZrZb3xhivfM8FRuzbjAEukAUtzpcBAQdMuqDKrj4sxR 07RB9Ix+Ut5pA6yJlkzMI1CQHbAcMIzNr0Sa0fT5/8KNHZmwhIL0Vggn+Kkqs9gMWM1F bbb4MI0joQevgUi/vZHFn4F6R7bc9gqu4Z5OCRG26aI3OZE5OoLFUEq5D3XQ2fG2rIcj rFrQ== X-Received: by 10.180.107.198 with SMTP id he6mr13245180wib.68.1427630124044; Sun, 29 Mar 2015 04:55:24 -0700 (PDT) Received: from [192.168.178.21] (p4FE5E772.dip0.t-ipconnect.de. [79.229.231.114]) by mx.google.com with ESMTPSA id cf12sm10960428wjb.10.2015.03.29.04.55.22 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 29 Mar 2015 04:55:23 -0700 (PDT) Message-ID: <5517E82A.2060901@googlemail.com> Date: Sun, 29 Mar 2015 13:55:22 +0200 From: Volker Armin Hemmann User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.5.0 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 To: gentoo-user@lists.gentoo.org Subject: Re: [gentoo-user] How to poweroff the system from user? References: <20150321152656.a82a84b3e8a32c8b68554548@gmail.com> <5370395.GfKeZNj2bZ@gentoo> In-Reply-To: <5370395.GfKeZNj2bZ@gentoo> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Archives-Salt: 1177d03b-bfea-4a6d-83b6-ed9cf91887af X-Archives-Hash: 4447422c365f960aaba4a69f912ed274 Am 26.03.2015 um 01:46 schrieb microcai: > on Saturday 21 March 2015 13:58:45,Canek Peláez Valdés wrote: >> On Sat, Mar 21, 2015 at 1:47 PM, Rich Freeman wrote: >>> On Sat, Mar 21, 2015 at 3:39 PM, German 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. >> logind does that for you automagically™. The first seat has the rights to >> poweroff or reboot the machine, and it can differentiate between local and >> remote logins. You can check if your user session has the permissions to >> poweroff/reboot via dbus: >> >> $ gdbus call --system --dest org.freedesktop.login1 --object-path >> /org/freedesktop/login1 --method org.freedesktop.login1.Manager.CanPowerOff >> ('yes',) >> >> $ gdbus call --system --dest org.freedesktop.login1 --object-path >> /org/freedesktop/login1 --method org.freedesktop.login1.Manager.CanReboot >> ('yes',) >> >> But you need systemd to use logind1. There has been some attempts to >> reimplement logind outside systemd, but I'm not sure how advanced they are. >> >> This kind of problems were one of the reasons for creating logind. >> > and dump people keep talking nonsencely that sysvinit is enough while it > cannot even handle reboot for normal user. sad. > > > it can. Did for decaded. Dumb systemd fanbois spouting their lies everywhere. Sad.