1 |
Hi all, |
2 |
|
3 |
I'm reading on the internet that systemctl poweroff should work for |
4 |
normal user if he is the only one logged in, he is logged in locally |
5 |
and his session is active. I seem to be meeting these conditions: |
6 |
|
7 |
# loginctl |
8 |
SESSION UID USER SEAT |
9 |
2 1000 lukash seat0 |
10 |
|
11 |
$ loginctl show-session 2 |
12 |
Id=2 |
13 |
User=1000 |
14 |
Name=lu |
15 |
Timestamp=Sat 2016-01-16 17:27:30 CET |
16 |
TimestampMonotonic=9614418 |
17 |
VTNr=7 |
18 |
Seat=seat0 |
19 |
Display=:0 |
20 |
Remote=no |
21 |
Service=lightdm |
22 |
Desktop=awesome |
23 |
Scope=session-2.scope |
24 |
Leader=529 |
25 |
Audit=2 |
26 |
Type=x11 |
27 |
Class=user |
28 |
Active=yes |
29 |
State=active |
30 |
IdleHint=no |
31 |
IdleSinceHint=0 |
32 |
IdleSinceHintMonotonic=0 |
33 |
|
34 |
But invoking the command gives me: |
35 |
|
36 |
$ systemctl poweroff |
37 |
Failed to set wall message, ignoring: Access denied |
38 |
Failed to power off system via logind: Access denied |
39 |
Failed to start poweroff.target: Access denied |
40 |
|
41 |
How is this supposed to work on Gentoo? |
42 |
|
43 |
Thanks in advance, |
44 |
Lukas |