Bug 6599

Summary: Changing password for user not in /etc/shadow fails
Product: [Retired] Red Hat Linux Reporter: Mads Kiilerich <mads>
Component: passwdAssignee: Cristian Gafton <gafton>
Status: CLOSED NOTABUG QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: 6.1   
Target Milestone: ---   
Target Release: ---   
Hardware: i386   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2000-02-17 21:51:19 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Description Mads Kiilerich 1999-11-01 14:07:02 UTC
Case:

A user is added manually to /etc/passwd
The password is set with passwd

Result: Still no entry in /etc/shadow and thus the user
cannot login.

This might be the right behaviour, but then the passwd
command shouldn't report "success".

Regards,
Mads

Comment 1 Cristian Gafton 2000-02-17 21:51:59 UTC
Don't add users only in /etc/passwd. User useradd.

Comment 2 Mads Kiilerich 2000-02-19 11:16:59 UTC
Agreed.

But some (slightly bogus) programs modifies /etc/passwd directly.

When passwd for such a user is set, then passwd should at least check if the
system is using shadows, and if that is the case then it should not report
success!