Bug 8923

Summary: usermod -p puts the password both in /etc/passwd and /etc/shadow
Product: [Retired] Red Hat Linux Reporter: Walter Klomp <walter>
Component: shadow-utilsAssignee: Nalin Dahyabhai <nalin>
Status: CLOSED RAWHIDE QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: 6.1Keywords: Security
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2000-02-02 16:30:20 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Walter Klomp 2000-01-27 16:16:44 UTC
Hi,

I call `usermod -p 'encrypted passwd' userid`  from a script.

It puts the encrypted password in /etc/shadow, BUT it ALSO puts the same
encrypted password in /etc/shadow...

I am Running RedHat 6.1 with usermode-1.18 (the latest fix) and it still
happens.  I also have Shadow and MD5 support enabled. I have also installed
the latest PAM...

I have reported this bug before.

Please contact me directly on my e-mail account if you need further
information, or if you have fixed it, or if I am doing something wrong...

Thanks for your attention.

Comment 1 Nalin Dahyabhai 2000-02-02 16:30:59 UTC
This is fixed in shadow-utils-19990827-6 and later, which is in Raw Hide and
will be in the next release.