Gentoo Archives: gentoo-user

From: German <gentgerman@×××××.com>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] How to poweroff the system from user?
Date: Sun, 22 Mar 2015 07:57:21
Message-Id: 20150322035626.4e4b9c3b115e823ccf03f3ba@gmail.com
In Reply to: Re: [gentoo-user] How to poweroff the system from user? by Matti Nykyri
1 On Sun, 22 Mar 2015 09:35:46 +0200
2 Matti Nykyri <matti.nykyri@×××.fi> wrote:
3
4 > > On Mar 22, 2015, at 9:31, Fernando Rodriguez <frodriguez.developer@×××××××.com> wrote:
5 > >
6 > >> On Sunday, March 22, 2015 3:06:59 AM German wrote:
7 > >> On Sun, 22 Mar 2015 08:49:54 +0200
8 > >> Matti Nykyri <matti.nykyri@×××.fi> wrote:
9 > >>
10 > >>>> On Mar 22, 2015, at 8:32, German <gentgerman@×××××.com> wrote:
11 > >>>>
12 > >>>>
13 > >>>> /sbin/poweroff says "Must be a superuser" :(
14 > >>>
15 > >>> Did you read any of the previous messages? They told you that you have to
16 > > have consolekit and polkit installed and configured for this to work!
17 > >>
18 > >> Yes, I've read them. However no one explianed how this has to be
19 > > accomplished with polkit and consolekit.
20 > >
21 > > Actually systemd's poweroff should be on /usr/bin or /bin but if you got it
22 > > there you shouldn't have got the command not found error so something is
23 > > messed up with your system. Post the output to the folling
24 > >
25 > > ls -l /usr/bin/poweroff
26 > > ls -l /bin/poweroff
27 > > ls -l /sbin/poweroff
28 > > ls -l /usr/sbin/poweroff
29 > >
30 > > Only one of them should list something and it should be a symlink to
31 > > systemctl.
32 >
33 > From previous messages by the OP I recall that he is using OpenRC.
34
35 Yes, as from fresh gentoo install.
36 >
37 > --
38 > -Matti
39
40
41 --