libpam-smbpass breaks sudo

Bug #346571 reported by Jack Coulter on 2009-03-22
This bug report is a duplicate of:  Bug #303458: segfault in Edit Remove
Affects Status Importance Assigned to Milestone
samba (Ubuntu)

Bug Description

Release: Jaunty

Since a recent upgrade (around the 16th of March), sudo has been broken. Entering the correct password causes sudo to simply exit and not run the command, it was found that this could be fixed by commenting/removing the line

"auth optional migrate"

in /etc/pam.d/common-auth

If the above line is present and not commented out, sudo or even su, will not work.

Thierry Carrez (ttx) wrote :

Thanks for reporting this bug !

Is there anything in the system logs (like a segfault reported in sudo ?)
Do you have a /var/lib/samba directory ?
Anything weird in the /var/lib/samba/*.tdb files (secrets.tdb in particular), like text log entries in the middle of the binary file ?

Changed in samba:
status: New → Incomplete
Jack Coulter (jscinoz) wrote :

No sudo segfaults, /var/lib/samba exists. Although /var/lib/samba/secrets.tdb does appear to be messed up, it is mostly binary data but does contain these lines:

Unable to open tdb '/var/lib/samba/group_mapping.ldb'
Failed to connect to '/var/lib/samba/group_mapping.ldb'
ltdb: tdb((null)): tdb_open_ex: could not open file /var/lib/samba/group_mappin$
Unable to open tdb '/var/lib/samba/group_mapping.ldb'
Failed to connect to '/var/lib/samba/group_mapping.ldb

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers