Gentoo Archives: gentoo-user

From: Emanuele Rusconi <emarsk@×××××.com>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] Re: How to poweroff the system from user?
Date: Thu, 26 Mar 2015 19:02:42
Message-Id: CAPife4k9O-F6DGPzJwhOA0OWER_pVv6yKERwR41uQf-qJZ1O7w@mail.gmail.com
In Reply to: Re: [gentoo-user] Re: How to poweroff the system from user? by Francisco Ares
1 On 26 March 2015 at 17:28, Francisco Ares <frares@×××××.com> wrote:
2
3 >
4 >
5 > edit /etc/sudoers to include a line like the one bellow:
6 >
7 >
8 > your_user_name
9 > ALL=NOPASSWD:/sbin/halt,NOPASSWD:/sbin/reboot,NOPASSWD:/sbin/poweroff,
10 >
11 >
12 > Then log off and log in again, and it should work.
13 >
14 > Hope this helps,
15 > Francisco
16 >
17
18 Yeah, lots of ways to do it, there's no need of systemd.
19 Or do people think that Linux users haven't been able to shut down or
20 reboot their computers for the past 30 years? :D
21 Oh, wait, maybe THAT's the reason for the long uptimes. :D :D
22
23 -- Emanuele Rusconi