[user@localhost ~]$ journalctl &> 1
[user@localhost ~]$ systemctl suspend
Failed to execute operation: Access denied
Failed to start suspend.target: Access denied
[user@localhost ~]$ journalctl &> 2
[user@localhost ~]$ diff -u 1 2
--- 1 2014-10-30 10:31:02.344933141 +0100
+++ 2 2014-10-30 10:31:12.760026873 +0100
@@ -1,4 +1,4 @@
--- Logs begin at Wed 2014-10-29 10:40:31 CET, end at Thu 2014-10-30 10:30:58 CET. --
+-- Logs begin at Wed 2014-10-29 10:40:31 CET, end at Thu 2014-10-30 10:31:08 CET. --
Oct 29 11:39:55 localhost systemd-journal[184]: Runtime journal is using 8.0M (max allowed 800.2M, trying to leave 1.1G free of 7.8G available → current limit 800.2M).
Oct 29 11:39:55 localhost systemd-journal[184]: Runtime journal is using 8.0M (max allowed 800.2M, trying to leave 1.1G free of 7.8G available → current limit 800.2M).
Oct 29 11:39:55 localhost kernel: CPU0 microcode updated early to revision 0x29, date = 2013-06-12
@@ -21305,3 +21305,6 @@
Oct 30 10:30:35 localhost.localdomain sudo[2739]: user : TTY=pts/0 ; PWD=/home/user ; USER=root ; COMMAND=/bin/top
Oct 30 10:30:46 localhost.localdomain kernel: mce: [Hardware Error]: Machine check events logged
Oct 30 10:30:58 localhost.localdomain chronyd[639]: Selected source 81.223.20.2
+Oct 30 10:31:07 localhost.localdomain polkitd[732]: Registered Authentication Agent for unix-process:2772:32208 (system bus name :1.108 [<unknown>], object path /org/freedesktop/PolicyKit1/AuthenticationAgent, locale en_US.UTF-8)
+Oct 30 10:31:07 localhost.localdomain dbus[644]: [system] Rejected send message, 2 matched rules; type="method_call", sender=":1.107" (uid=1000 pid=2772 comm="") interface="org.freedesktop.systemd1.Manager" member="StartUnit" error name="(unset)" requested_reply="0" destination="org.freedesktop.systemd1" (uid=0 pid=1 comm="")
+Oct 30 10:31:08 localhost.localdomain polkitd[732]: Unregistered Authentication Agent for unix-process:2772:32208 (system bus name :1.108, object path /org/freedesktop/PolicyKit1/AuthenticationAgent, locale en_US.UTF-8) (disconnected from bus)
The more precise take:
[user@localhost ~]$ sudo journalctl &> a
[user@localhost ~]$ strace -f systemctl suspend &> trace
[user@localhost ~]$ sudo journalctl &> b
[user@localhost ~]$ sudo diff -u a b
--- a 2014-10-30 10:44:51.455533356 +0100
+++ b 2014-10-30 10:45:05.431688872 +0100
@@ -1,4 +1,4 @@
--- Logs begin at Wed 2014-10-29 10:40:31 CET, end at Thu 2014-10-30 10:44:50 CET. --
+-- Logs begin at Wed 2014-10-29 10:40:31 CET, end at Thu 2014-10-30 10:45:04 CET. --
Oct 29 11:39:55 localhost systemd-journal[184]: Runtime journal is using 8.0M (max allowed 800.2M, trying to leave 1.1G free of 7.8G available → current limit 800.2M).
Oct 29 11:39:55 localhost systemd-journal[184]: Runtime journal is using 8.0M (max allowed 800.2M, trying to leave 1.1G free of 7.8G available → current limit 800.2M).
Oct 29 11:39:55 localhost kernel: CPU0 microcode updated early to revision 0x29, date = 2013-06-12
@@ -21413,3 +21413,7 @@
Oct 30 10:44:00 localhost.localdomain sudo[4091]: user : TTY=pts/3 ; PWD=/home/user ; USER=root ; COMMAND=/bin/diff -u a b
Oct 30 10:44:29 localhost.localdomain sudo[4109]: user : TTY=pts/3 ; PWD=/home/user ; USER=root ; COMMAND=/bin/rm -rf 1 11 12 13 14 2 a
Oct 30 10:44:50 localhost.localdomain sudo[4119]: user : TTY=pts/3 ; PWD=/home/user ; USER=root ; COMMAND=/bin/journalctl
+Oct 30 10:45:01 localhost.localdomain polkitd[732]: Registered Authentication Agent for unix-process:4130:115593 (system bus name :1.127 [<unknown>], object path /org/freedesktop/PolicyKit1/AuthenticationAgent, locale en_US.UTF-8)
+Oct 30 10:45:01 localhost.localdomain dbus[644]: [system] Rejected send message, 2 matched rules; type="method_call", sender=":1.128" (uid=1000 pid=4130 comm="") interface="org.freedesktop.systemd1.Manager" member="StartUnit" error name="(unset)" requested_reply="0" destination="org.freedesktop.systemd1" (uid=0 pid=1 comm="")
+Oct 30 10:45:01 localhost.localdomain polkitd[732]: Unregistered Authentication Agent for unix-process:4130:115593 (system bus name :1.127, object path /org/freedesktop/PolicyKit1/AuthenticationAgent, locale en_US.UTF-8) (disconnected from bus)
+Oct 30 10:45:04 localhost.localdomain sudo[4235]: user : TTY=pts/3 ; PWD=/home/user ; USER=root ; COMMAND=/bin/journalctl
The trace can be found here:
http://pastebin.com/khU2Puzp