Bugzilla – Bug 146
sudo gives a segmentation fault after prompting for password
Last modified: 2004-10-07 16:20:22 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 .
Do you have any Defaults variables set in sudoers? If so, please let me know which ones.
No, I don't. The only non-blank, non-comment lines are entries for my main id and root.
*** Bug 147 has been marked as a duplicate of this bug. ***
Created attachment 28 [details] new /etc/pam.d/sudo to try Please try this /etc/pam.d/sudo file.
Thanks, Todd. That worked a charm! Will you be rolling out a patched tarball, or should I just update my package build?
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.
The updated sample.pam file shipped with sudo 1.6.8p1