I've installed polkit so I can systemctl reboot as a user, and then came across this.
When trying to reboot/poweroff I get the following:-
$this->bbcode_second_pass_code('', '[alarm@alarmpi ~]$ systemctl reboot
==== AUTHENTICATING FOR org.freedesktop.login1.set-wall-message ===
Authentication is required to set a wall message
Authenticating as: alarm
Password:
==== AUTHENTICATION COMPLETE ===
==== AUTHENTICATING FOR org.freedesktop.login1.reboot ===
Authentication is required for rebooting the system.
Authenticating as: alarm
Password:
==== AUTHENTICATION COMPLETE ===
')
This seems to indicate a login problem. Here's my output for loginctl user_status
$this->bbcode_second_pass_code('', '[alarm@alarmpi ~]$ loginctl user-status
alarm (1000)
Since: Tue 2016-07-19 23:26:37 UTC; 1min 11s ago
State: active
Sessions: *c1
Linger: no
Unit: user-1000.slice
|-session-c1.scope
| |-282 sshd: alarm [priv]
| |-292 sshd: alarm@pts/0
| |-293 -bash
| |-334 loginctl user-status
| `-335 less
`-user@1000.service
`-init.scope
|-284 /usr/lib/systemd/...
`-287 (sd-pam)
Jul 19 23:26:37 alarmpi systemd[284]: pam_unix(systemd-user:session): session opened for user alarm by (uid=0)
Jul 19 23:26:37 alarmpi systemd[284]: Starting D-Bus User Message Bus Socket.
Jul 19 23:26:37 alarmpi systemd[284]: Reached target Paths.
Jul 19 23:26:37 alarmpi systemd[284]: Reached target Timers.
Jul 19 23:26:37 alarmpi systemd[284]: Listening on D-Bus User Message Bus Socket.
Jul 19 23:26:37 alarmpi systemd[284]: Reached target Sockets.
Jul 19 23:26:37 alarmpi systemd[284]: Reached target Basic System.
Jul 19 23:26:37 alarmpi systemd[284]: Reached target Default.
Jul 19 23:26:37 alarmpi systemd[284]: Startup finished in 289ms.
')
Any ideas?