Gentoo Archives: gentoo-user

From: Alexander Kapshuk <alexander.kapshuk@×××××.com>
To: Gentoo mailing list <gentoo-user@l.g.o>
Subject: Re: [gentoo-user] How to poweroff the system from user?
Date: Sun, 22 Mar 2015 07:11:49
Message-Id: CAJ1xhMW8g=neK9TbUvBgU1gopd8uWyaPOaWokdOLuZY5QpD6Aw@mail.gmail.com
In Reply to: Re: [gentoo-user] How to poweroff the system from user? by German
1 On Sun, Mar 22, 2015 at 9:06 AM, German <gentgerman@×××××.com> wrote:
2
3 > On Sun, 22 Mar 2015 08:49:54 +0200
4 > Matti Nykyri <matti.nykyri@×××.fi> wrote:
5 >
6 > > > On Mar 22, 2015, at 8:32, German <gentgerman@×××××.com> wrote:
7 > > >
8 > > >
9 > > > /sbin/poweroff says "Must be a superuser" :(
10 > >
11 > > Did you read any of the previous messages? They told you that you have
12 > to have consolekit and polkit installed and configured for this to work!
13 >
14 > Yes, I've read them. However no one explianed how this has to be
15 > accomplished with polkit and consolekit.
16 >
17 > Also the use of sudo is another choice.
18 >
19 > Sudo is just a package?
20 >
21
22 Yes, it is.
23 qsearch sudo|sed 1q
24 app-admin/sudo Allows users or groups to run commands as other users
25
26
27 > >
28 > > If you want every user to be able to shutdown just run this command:
29 > >
30 > > chmod 6755 /sbin/poweroff
31 > >
32 > > --
33 > > -Matti
34 >
35 >
36 > --
37 >
38 >
39 >

Replies

Subject Author
Re: [gentoo-user] How to poweroff the system from user? Matti Nykyri <matti.nykyri@×××.fi>