[systemd-devel] Hybrid-sleep needs to be executed bu superuser
Christian Hesse
list at eworm.de
Mon Dec 17 12:33:34 PST 2012
Federico Di Pierro <nierro92 at gmail.com> on Mon, 2012/12/17 21:19:
> Hi!
> I'm using systemd 196 on my archlinux, with linux 3.7.0 .
> I found out that "systemctl hybrid-sleep" needs to be ran as root. While my
> session is active (using systemd-logind feature), and in fact i can
> hibernate/poweroff/suspend with my normal user. But hybrid-sleep still
> requires superuser privileges.
> Is there any reason?
> Thanks for your time!
I suppose this is just polkit missing the correct rules. Take a look
at /usr/share/polkit-1/actions/org.freedesktop.login1.policy and add the
block needed. I will take a look tomorrow if you did not success till then.
--
main(a){char*c=/* Schoene Gruesse */"B?IJj;MEH"
"CX:;",b;for(a/* Chris get my mail address: */=0;b=c[a++];)
putchar(b-1/(/* gcc -o sig sig.c && ./sig */b/42*2-3)*42);}
More information about the systemd-devel
mailing list