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