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