Gentoo Archives: gentoo-user

From: Mark Knecht <markknecht@×××××.com>
To: gentoo-user@l.g.o
Subject: [gentoo-user] Re: non-sudo way for user to run shutdown -h now? (or any equivalent)
Date: Thu, 21 Jul 2005 14:06:13
Message-Id: 5bdc1c8b05072107016b969579@mail.gmail.com
1 Thanks! good info.
2
3 cheers,
4 Mark
5
6 On 7/21/05, CoolAJ86 <coolaj86@×××××.com> wrote:
7 > You'll need to setuid on the binary (that makes it run by everone as if
8 > root had run it). You may also want to configure acpi so that hitting
9 > the off button causes a clean shutdown.
10 >
11 >
12 > Via software
13 > chmod u+s /sbin/halt
14 > chmod u+s /sbin/shutdown
15 > chmod u+s /sbin/reboot
16 >
17 > Via software if user is in acpiusers
18 >
19 > groupadd acpiusers
20 > chgrp acpiusers /sbin/halt
21 > chgrp acpiusers /sbin/shutdown
22 > chgrp acpiusers /sbin/reboot
23 > chmod g+s /sbin/halt
24 > chmod g+s /sbin/shutdown
25 > chmod g+s /sbin/reboot
26 >
27 > Via power switch
28 > http://gentoo-wiki.com/TIP_ACPI_basic_configuration
29 >
30 >
31
32 --
33 gentoo-user@g.o mailing list