You are not logged in.

#1 2013-02-09 11:14:36

Bladtman242
Member
Registered: 2012-02-14
Posts: 127

[SOLVED]systemctl power commands: Access denied

Hi fellow Archers. I've been searching around without luck for a while, so here we go:
The systemd power commands only works when run as root.
when I try "systemctl poweroff" or "hibernate" as my regular user, I get

Failed to issue method call: Access denied

To the best of my knowledge, I have a well functioning systemd install, no rc's, no sysvinit.
I do not run a desktop environment.
I do not have polkit, but I do have PAM.
I use SLIM as login manager.
My logind session does not appear broken:

loginctl show-session $XDG_SESSION_ID wrote:

   
Id=1
Timestamp=Sat 2013-02-09 12:13:00 CET
TimestampMonotonic=34960282
DefaultControlGroup=name=systemd:/user/bladt/1
VTNr=7
Display=:0.0
Remote=no
RemoteUser=root
Service=slim
Leader=303
Audit=1
Type=x11
Class=user
Active=yes
State=active
KillProcesses=no
IdleHint=no
IdleSinceHint=0
IdleSinceHintMonotonic=0
Name=bladt

As always, help and and help for self-help is much appreciated :)

Last edited by Bladtman242 (2013-02-09 16:34:58)

Offline

#2 2013-02-09 11:33:05

65kid
Member
From: Germany
Registered: 2011-01-26
Posts: 663

Re: [SOLVED]systemctl power commands: Access denied

I do not have polkit, but I do have PAM.

You need polkit for this (this is also what the wiki says btw wink ).

Offline

#3 2013-02-09 16:34:35

Bladtman242
Member
Registered: 2012-02-14
Posts: 127

Re: [SOLVED]systemctl power commands: Access denied

Ah well.
I thought is was just outdated, as this has worked before.
Having polkit around just for this seems wasteful, so I think I'm going to make do with editing sudoers and making a couple aliases.
But thanks anyway smile

Offline

Board footer

Powered by FluxBB