You are not logged in.

#1 2013-04-11 03:44:09

SgrA
Member
Registered: 2011-06-08
Posts: 41

Can't run systemctl <power management option> as normal user

Hi,

    I can't run systemctl suspend as a normal user:

$ systemctl suspend
Error getting authority: Error initializing authority: Could not connect: Permission denied (g-io-error-quark, 14)
^C

    It was pointed out on IRC that polkit is failing to start:

[root@arneb ~]# systemctl start polkit
[root@arneb ~]# systemctl status polkit
polkit.service - Authorization Manager
	  Loaded: loaded (/usr/lib/systemd/system/polkit.service; static)
	  Active: inactive (dead)
	    Docs: man:polkit(8)

^C
[root@arneb ~]# /usr/lib/polkit-1/polkitd 
Successfully changed to user polkitd
Error getting system bus: Could not connect: Permission denied
** (polkitd:16942): WARNING **: Error getting system bus: Could not connect: Permission denied
09:12:49.327: Loading rules from directory /etc/polkit-1/rules.d
09:12:49.327: Loading rules from directory /usr/share/polkit-1/rules.d
09:12:49.328: Finished loading, compiling and executing 1 rules
Entering main event loop
09:12:49.329: Lost the name org.freedesktop.PolicyKit1 - exiting
Shutting down
Exiting with code 0
[root@arneb ~]# 

Offline

#2 2013-04-11 03:50:51

Inxsible
Forum Fellow
From: Chicago
Registered: 2008-06-09
Posts: 9,162

Re: Can't run systemctl <power management option> as normal user


Forum Rules

There's no such thing as a stupid question, but there sure are a lot of inquisitive idiots !

Offline

#3 2013-04-11 03:54:52

SgrA
Member
Registered: 2011-06-08
Posts: 41

Re: Can't run systemctl <power management option> as normal user

loginctl lists my session, and is the only active session: I logged in after rebooting.

Offline

#4 2013-04-11 08:03:00

lucke
Member
From: Poland
Registered: 2004-11-30
Posts: 4,018

Re: Can't run systemctl <power management option> as normal user

Is dbus.service running? What does "ps ax | grep dbus" show?

-edit-

Without dbus running, polkitd shows "Connection refused". In your case it says "Permission denied". Anyway, the problem has something to do with dbus.

Last edited by lucke (2013-04-11 08:12:50)

Offline

#5 2013-04-11 09:19:44

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

Re: Can't run systemctl <power management option> as normal user

make sure the polkitd group and user exist. They should be created by polkit on install but maybe you messed this up when merging {passwd,group}.pacnew files!? A polkit reinstall should fix this.

Offline

Board footer

Powered by FluxBB