Description of problem:
For some reason when I have a brand new minimal rhel4 system
installed, if I manually add a user with the following /etc/passwd entry:
and have /etc/shadow set to:
Trying to run passwd as root for this user generates a segfault.
Adding the user "test" with uid "02070" doesn't seem to cause this
Version-Release number of selected component (if applicable):
Created attachment 107251 [details]
Attaching strace of failure...
strace of the following command:
This is from Beta I.
I was able to reproduce the bug. The SIGSEGV occurs when passwd calls
pam_sm_chauthtok() from pam_unix.so module. Thus the bug is likely not
in passwd but pam.
Reassigning to pam.
This is a bug in parsing passwd file entry in pam_unix module. It
parses the numbers as octals if they begin with 0.
Workaround is to remove the leading 0 in the line:
All is well with pam-0.77-66.4 which is included in the U1-candidate trees.
Moving to PROD_READY.
An advisory has been issued which should help the problem
described in this bug report. This report is therefore being
closed with a resolution of ERRATA. For more information
on the solution and/or where to find the updated files,
please follow the link below. You may reopen this bug report
if the solution does not work for you.