session optional pam_systemd.so missing from /etc/pam.d common-session file

Bug #1244463 reported by Abdul Jabbar
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
systemd (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

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/freedesktop/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.

(UPDATE:)
To add further information, this is how i upgraded my system from 12.04 to 13.10,

1. logged into the system with my normal user account, (which is not in the sudoers list)
2. opened terminal and did "su <sudoerAccountName>" and then entered the pwd.
3. once inside the sudoer account in the terminal, I issued the command "sudo update-manager -d"

I did the above three steps from 12.04 to 12.10, 12.10 to 13.04 and finally from 13.04 to 13.10.

I was not able to update directly to 13.10, hence the step by step approach.

-------------------------------------------------------------------------------------
ProblemType: Bug
DistroRelease: Ubuntu 13.10
Package: libpam-systemd 204-0ubuntu19
ProcVersionSignature: Ubuntu 3.11.0-12.19-generic 3.11.3
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)

Revision history for this message
Abdul Jabbar (abujab) wrote :
Revision history for this message
Abdul Jabbar (abujab) wrote :

To add further information, this is how i upgraded my system from 12.04 to 13.10,

1. logged into the system with my normal user account, (which is not in the sudoers list)
2. opened terminal and did "su <sudoerAccountName>" and then entered the pwd.
3. once inside the sudoer account in the terminal, I issued the command "sudo update-manager -d"

I did the above three steps from 12.04 to 12.10, 12.10 to 13.04 and finally from 13.04 to 13.10.

I was not able to update directly to 13.10, hence the step by step approach.

description: updated
Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in systemd (Ubuntu):
status: New → Confirmed
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.