From: Fernando Rodriguez <frodriguez.developer@outlook.com>
To: gentoo-user@lists.gentoo.org
Subject: Re: [gentoo-user] How to poweroff the system from user?
Date: Sun, 22 Mar 2015 03:35:49 -0400 [thread overview]
Message-ID: <5105679.TWFWNhoDVI@navi> (raw)
In-Reply-To: <20150322033049.aab2319694dadd92fb2bcff8@gmail.com>
On Sunday, March 22, 2015 3:30:49 AM German wrote:
> On Sun, 22 Mar 2015 03:19:50 -0400
> Fernando Rodriguez <frodriguez.developer@outlook.com> wrote:
>
> > On Sunday, March 22, 2015 3:06:59 AM German 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.
> >
> > You don't need those. It sounds like you somehow got both sysvinit and
systemd
> > installed. The message you're getting is from sysvinit. poweroff should be
a
> > symlink to systemctl. Try:
> >
> > systemctl poweroff
> >
> > You may need to unmerge sysvinit and anything else related to openrc and
then
> > re-emerge systemd. With systemd it should either shutdown or ask you for
the
> > root password (if you're not logged in locally or there's other users
logged
>
> Thanks, I decide to go with sudo on this one. However when I try to run it,
it says:
> "Username is not in the sudoers file." Where is this file located and how can
I add the user to it? Thanks
>
> > in).
> >
>
>
>
See man sudo. But the advice you're getting is for openrc (it will work until
something else breaks), you need to remove all openrc components and install
systemd properly.
--
Fernando Rodriguez
next prev parent reply other threads:[~2015-03-22 7:36 UTC|newest]
Thread overview: 93+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-03-21 19:26 [gentoo-user] How to poweroff the system from user? German
2015-03-21 19:34 ` Alexander Kapshuk
2015-03-21 19:35 ` Alexander Kapshuk
2015-03-21 22:38 ` Fernando Rodriguez
2015-03-21 22:52 ` Emanuele Rusconi
2015-03-21 23:03 ` Fernando Rodriguez
2015-03-21 19:39 ` German
2015-03-21 19:47 ` Rich Freeman
2015-03-21 19:58 ` Canek Peláez Valdés
2015-03-26 0:46 ` microcai
2015-03-29 11:55 ` Volker Armin Hemmann
2015-03-29 12:33 ` Jorge Almeida
2015-03-29 12:44 ` Rich Freeman
2015-03-21 20:01 ` German
2015-03-21 20:17 ` Jc García
2015-03-21 20:09 ` Fernando Rodriguez
2015-03-21 20:32 ` Philip Webb
2015-03-21 20:50 ` Rich Freeman
2015-03-21 20:58 ` German
2015-03-21 22:20 ` Jc García
2015-03-22 10:30 ` Peter Humphrey
2015-03-22 11:04 ` [gentoo-user] " Nikos Chantziaras
2015-03-22 11:27 ` Peter Humphrey
2015-03-22 15:58 ` Philip Webb
2015-03-22 19:13 ` Nikos Chantziaras
2015-03-22 20:12 ` Philip Webb
2015-03-22 23:18 ` Nikos Chantziaras
2015-03-22 21:13 ` Matti Nykyri
2015-03-29 10:23 ` lee
2015-03-31 5:57 ` Fernando Rodriguez
2015-03-31 6:38 ` Fernando Rodriguez
2015-03-31 9:36 ` Tom H
2015-03-31 9:42 ` Emanuele Rusconi
2015-03-31 17:13 ` Tom H
2015-04-04 12:41 ` lee
2015-04-04 15:16 ` Rich Freeman
2015-04-07 20:10 ` lee
2015-04-07 20:24 ` lee
2015-04-04 22:36 ` Fernando Rodriguez
2015-04-07 19:21 ` lee
2015-04-07 20:43 ` Fernando Rodriguez
2015-04-07 21:27 ` Neil Bothwick
2015-04-08 21:47 ` lee
2015-04-14 21:07 ` Emanuele Rusconi
2015-04-14 22:06 ` lee
2015-04-14 23:02 ` Neil Bothwick
2015-05-09 15:13 ` lee
2015-04-04 22:37 ` Neil Bothwick
2015-04-05 7:27 ` Dale
2015-04-05 11:24 ` Rich Freeman
2015-04-05 15:13 ` Dale
2015-03-22 20:36 ` [gentoo-user] " Jc García
2015-03-23 9:46 ` Peter Humphrey
2015-03-23 10:12 ` 回复:Re: " Nicol TAO
2015-03-23 11:28 ` Rich Freeman
2015-03-23 12:13 ` [gentoo-user] " Nikos Chantziaras
2015-03-23 12:16 ` Matti Nykyri
2015-03-23 13:32 ` Nikos Chantziaras
2015-03-23 12:16 ` [gentoo-user] " Emanuele Rusconi
2015-03-29 10:43 ` lee
2015-03-29 23:20 ` Walter Dnes
2015-03-29 19:30 ` Rich Freeman
2015-03-30 0:32 ` Walter Dnes
2015-03-30 0:52 ` Rich Freeman
2015-03-30 8:09 ` Mick
2015-03-30 9:41 ` Rich Freeman
2015-03-30 8:00 ` Mick
2015-04-04 12:47 ` lee
2015-03-21 22:51 ` Fernando Rodriguez
2015-03-22 6:32 ` German
2015-03-22 6:49 ` Matti Nykyri
2015-03-22 7:06 ` German
2015-03-22 7:11 ` Alexander Kapshuk
2015-03-22 7:22 ` Matti Nykyri
2015-03-22 7:19 ` Fernando Rodriguez
2015-03-22 7:30 ` German
2015-03-22 7:34 ` Matti Nykyri
2015-03-22 7:35 ` Fernando Rodriguez [this message]
2015-03-22 7:55 ` German
2015-03-22 7:47 ` Fernando Rodriguez
2015-03-22 7:57 ` German
2015-03-23 1:39 ` Walter Dnes
2015-03-22 7:31 ` Fernando Rodriguez
2015-03-22 7:35 ` Matti Nykyri
2015-03-22 7:55 ` Fernando Rodriguez
2015-03-22 7:56 ` German
2015-03-26 0:53 ` microcai
2015-03-26 15:36 ` Tom H
2015-03-22 7:41 ` [gentoo-user] " Nikos Chantziaras
2015-03-26 1:46 ` [gentoo-user] " wabenbau
2015-03-26 16:13 ` [gentoo-user] " Hans
2015-03-26 16:28 ` Francisco Ares
2015-03-26 19:02 ` Emanuele Rusconi
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=5105679.TWFWNhoDVI@navi \
--to=frodriguez.developer@outlook.com \
--cc=gentoo-user@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox