sudo crashes with pam_mount.c:417: modify_pm_count: Assertion `user != ((void *)0)' failed.
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
sudo (Ubuntu) |
Confirmed
|
Undecided
|
Unassigned |
Bug Description
For a while using sudo is not a problem but suddenly it starts failing every time with:
sudo: pam_mount.c:417: modify_pm_count: Assertion `user != ((void *)0)' failed.
It just happened *during* an "apt-get dist-upgrade". A reboot is necessary to recover the ability to sudo.
This seems to be the same problem as the upstream bug http://
I changed my /etc/security/
The file is attached to this bug, as well as an strace of sudo.
ProblemType: Bug
DistroRelease: Ubuntu 12.04
Package: libpam-mount 2.10-2build1
ProcVersionSign
Uname: Linux 3.2.0-19-generic x86_64
ApportVersion: 1.94.1-0ubuntu2
Architecture: amd64
Date: Wed Mar 21 12:43:58 2012
InstallationMedia: Lubuntu 12.04 "Precise Pangolin" - Alpha amd64 (20120201.1)
ProcEnviron:
LANGUAGE=en_GB:en
TERM=xterm
PATH=(custom, user)
LANG=en_GB.UTF-8
SHELL=
SourcePackage: libpam-mount
UpgradeStatus: No upgrade log present (probably fresh install)
mtime.conffile.
I should add that a logout/relogin is also sufficient to reset the sudo capability. Also, for anyone else affected: the only workaround I could come up with is a sudo bash directly after login and do everything you need root for from there. That way you don't have to log out when this happens. It also defies the purpose of sudo in a way but well.