1 |
If it's your home system and especial security is unimportant you can try |
2 |
next: |
3 |
chmod +s /sbin/halt |
4 |
and use /sbin/halt to achieve the same effect. |
5 |
|
6 |
You can use ACPI power button event (see /etc/acpi/events/default and |
7 |
uncomment appropriate line). |
8 |
Also there was method with dbus (searching the web will give suggestions). |
9 |
|
10 |
|
11 |
2014-03-10 22:15 GMT+02:00 Jarry <mr.jarry@×××××.com>: |
12 |
|
13 |
> Hi, |
14 |
> how can I allow other (not-root) users to shut down system? |
15 |
> |
16 |
> I tried to add them to /etc/shutdown.allow but it works only |
17 |
> for "Ctrl-Alt-Del". When they try shutdown per command line |
18 |
> (/sbin/shutdown -a -h now) they still get: |
19 |
> |
20 |
> shutdown: you must be root to do that! |
21 |
> Usage: ... |
22 |
> |
23 |
> Is there any way to achieve this without installing sudo? |
24 |
> |
25 |
> Jarry |
26 |
> -- |
27 |
> _______________________________________________________________ |
28 |
> This mailbox accepts e-mails only from selected mailing-lists! |
29 |
> Everything else is considered to be spam and therefore deleted. |
30 |
> |
31 |
> |
32 |
|
33 |
|
34 |
-- |
35 |
Regards, |
36 |
Nikita |