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:31:01
Message-Id: 20150322033049.aab2319694dadd92fb2bcff8@gmail.com
In Reply to: Re: [gentoo-user] How to poweroff the system from user? by Fernando Rodriguez
1 On Sun, 22 Mar 2015 03:19:50 -0400
2 Fernando Rodriguez <frodriguez.developer@×××××××.com> wrote:
3
4 > On Sunday, March 22, 2015 3:06:59 AM German wrote:
5 > > On Sun, 22 Mar 2015 08:49:54 +0200
6 > > Matti Nykyri <matti.nykyri@×××.fi> wrote:
7 > >
8 > > > > On Mar 22, 2015, at 8:32, German <gentgerman@×××××.com> wrote:
9 > > > >
10 > > > >
11 > > > > /sbin/poweroff says "Must be a superuser" :(
12 > > >
13 > > > Did you read any of the previous messages? They told you that you have to
14 > have consolekit and polkit installed and configured for this to work!
15 > >
16 > > Yes, I've read them. However no one explianed how this has to be
17 > accomplished with polkit and consolekit.
18 >
19 > You don't need those. It sounds like you somehow got both sysvinit and systemd
20 > installed. The message you're getting is from sysvinit. poweroff should be a
21 > symlink to systemctl. Try:
22 >
23 > systemctl poweroff
24 >
25 > You may need to unmerge sysvinit and anything else related to openrc and then
26 > re-emerge systemd. With systemd it should either shutdown or ask you for the
27 > root password (if you're not logged in locally or there's other users logged
28
29 Thanks, I decide to go with sudo on this one. However when I try to run it, it says:
30 "Username is not in the sudoers file." Where is this file located and how can I add the user to it? Thanks
31
32 > in).
33 >
34 > --
35 > Fernando Rodriguez
36 >
37
38
39 --

Replies

Subject Author
Re: [gentoo-user] How to poweroff the system from user? Matti Nykyri <matti.nykyri@×××.fi>
Re: [gentoo-user] How to poweroff the system from user? Fernando Rodriguez <frodriguez.developer@×××××××.com>
Re: [gentoo-user] How to poweroff the system from user? Fernando Rodriguez <frodriguez.developer@×××××××.com>
Re: [gentoo-user] How to poweroff the system from user? Walter Dnes <waltdnes@××××××××.org>