Bug 146

Summary: sudo gives a segmentation fault after prompting for password
Product: Sudo Reporter: Michael Hill <michael>
Component: SudoAssignee: Todd C. Miller <Todd.Miller>
Status: RESOLVED FIXED    
Severity: normal    
Priority: normal    
Version: 1.6.8   
Hardware: PC   
OS: Linux   
Attachments: new /etc/pam.d/sudo to try

Description Michael Hill 2004-08-28 23:00:18 MDT
I just upgraded to 1.6.8 (built the RPM myself)--previous versions worked fine.
 When I run sudo as a normal user listed in the sudoers file, it segfaults after
I type in my password.  It does not log the attempt in the sudo.log file.  It
runs normally when run as root (doesn't prompt for a password).  When I add
NOPASSWD to my user line in sudoers, it runs normally.  So I believe the
(mis)behavior is related to the password checking.  I use the sample.pam file,
unchanged, in /etc/pam.d/sudo .
Comment 1 Todd C. Miller 2004-08-29 00:28:48 MDT
Do you have any Defaults variables set in sudoers?  If so, please let me know which ones.
Comment 2 Michael Hill 2004-08-29 07:26:02 MDT
No, I don't.  The only non-blank, non-comment lines are entries for my main id
and root.
Comment 3 Michael Hill 2004-08-29 07:43:14 MDT
*** Bug 147 has been marked as a duplicate of this bug. ***
Comment 4 Todd C. Miller 2004-08-29 09:11:52 MDT
Created attachment 28 [details]
new /etc/pam.d/sudo to try

Please try this /etc/pam.d/sudo file.
Comment 5 Michael Hill 2004-08-29 15:08:57 MDT
Thanks, Todd.  That worked a charm!  Will you be rolling out a patched tarball,
or should I just update my package build?
Comment 6 Todd C. Miller 2004-08-30 13:19:22 MDT
I'm waiting on an LDAP fix, after which I will roll out patch1 for sudo 1.6.8.  In the meantime I suggest 
you simply update your package build.
Comment 7 Todd C. Miller 2004-10-07 12:20:22 MDT
The updated sample.pam file shipped with sudo 1.6.8p1