session optional pam_systemd.so missing from /etc/pam.d common-session file
I updated from 12.04 to 13.10 version three days back. After this I noticed,
1. the shutdown and restart options from the top right corner button did not work.
2. My user name was not being diplayed next to the top right corner button.
From #ubuntu-bug irc chat a user helped me identify the issue.
We started from the /var/log/syslog showing "Oct 24 22:54:58 c490100005 gnome-session[1984]: WARNING: Unable to inhibit system: GDBus.Error:org.freedesktop.DBus.Error.AccessDenied: Operation not permitted" when I tried doing a shutdown/restart.
Then we ran the following commands with the following results,
session optional pam_systemd.so missing from /etc/pam.d common-session file
I updated from 12.04 to 13.10 version three days back. After this I noticed,
1. the shutdown and restart options from the top right corner button did not work.
2. My user name was not being diplayed next to the top right corner button.
From #ubuntu-bug irc chat a user helped me identify the issue.
We started from the /var/log/syslog showing "Oct 24 22:54:58 c490100005 gnome-session[ 1984]: WARNING: Unable to inhibit system: GDBus.Error: org.freedesktop .DBus.Error. AccessDenied: Operation not permitted" when I tried doing a shutdown/restart.
Then we ran the following commands with the following results,
command: dbus-send --print-reply --system --dest= org.freedesktop .login1 /org/freedeskto p/login1 org.freedesktop .login1. Manager. CanPowerOff
result: method return sender=:1.3 -> dest=:1.95 reply_serial=2
string "challenge"
command: loginctl list-sessions
result: 0 sessions listed.
command: cat /etc/pam. d/common- session | grep systemd
result: returned nothing
So we added the line "session optional pam_systemd.so" to the common-session file and the above two issues are now gone.
ProblemType: Bug ature: Ubuntu 3.11.0- 12.19-generic 3.11.3
DistroRelease: Ubuntu 13.10
Package: libpam-systemd 204-0ubuntu19
ProcVersionSign
Uname: Linux 3.11.0-12-generic x86_64
ApportVersion: 2.12.5-0ubuntu2.1
Architecture: amd64
Date: Fri Oct 25 00:27:11 2013
InstallationDate: Installed on 2012-08-25 (425 days ago)
InstallationMedia: Ubuntu 12.04 LTS "Precise Pangolin" - Release amd64 (20120423)
MarkForUpload: True
SourcePackage: systemd
UpgradeStatus: Upgraded to saucy on 2013-10-20 (3 days ago)