Bug 545053 - passwd fails with obscure message when line in /etc/shadow missing
passwd fails with obscure message when line in /etc/shadow missing
Status: CLOSED RAWHIDE
Product: Fedora
Classification: Fedora
Component: pam (Show other bugs)
rawhide
All Linux
low Severity medium
: ---
: ---
Assigned To: Tomas Mraz
Fedora Extras Quality Assurance
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2009-12-07 08:08 EST by Ed Avis
Modified: 2010-11-04 04:06 EDT (History)
1 user (show)

See Also:
Fixed In Version: pam-1.1.3-1.fc15
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2010-11-04 04:06:26 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:


Attachments (Terms of Use)

  None (edit)
Description Ed Avis 2009-12-07 08:08:18 EST
If a user's entry is missing in /etc/shadow (although present in /etc/passwd) then trying to set the password for that user fails:

# passwd somebody
Changing password for user somebody.
New password:
Retype new password:
passwd: Authentication token manipulation error

If you manually add a line to /etc/shadow then passwd succeeds.  This bug report is for two suggestions:

- Firstly, if the line is missing in /etc/shadow then the error message should say that - the existing message is not very informative.

- But better would be that passwd(1) knows to add a new line to /etc/shadow if setting the password for a user for the first time.

Of course adduser(1) adds the line but making passwd(1) more robust would avoid some headscratching in case the various files get out of sync.
Comment 1 Tomas Mraz 2009-12-07 11:06:50 EST
This must be fixed in pam_unix.
Comment 2 Bug Zapper 2010-11-04 00:02:32 EDT
This message is a reminder that Fedora 12 is nearing its end of life.
Approximately 30 (thirty) days from now Fedora will stop maintaining
and issuing updates for Fedora 12.  It is Fedora's policy to close all
bug reports from releases that are no longer maintained.  At that time
this bug will be closed as WONTFIX if it remains open with a Fedora 
'version' of '12'.

Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, simply change the 'version' 
to a later Fedora version prior to Fedora 12's end of life.

Bug Reporter: Thank you for reporting this issue and we are sorry that 
we may not be able to fix it before Fedora 12 is end of life.  If you 
would still like to see this bug fixed and are able to reproduce it 
against a later version of Fedora please change the 'version' of this 
bug to the applicable version.  If you are unable to change the version, 
please add a comment here and someone will do it for you.

Although we aim to fix as many bugs as possible during every release's 
lifetime, sometimes those efforts are overtaken by events.  Often a 
more recent Fedora release includes newer upstream software that fixes 
bugs or makes them obsolete.

The process we are following is described here: 
http://fedoraproject.org/wiki/BugZappers/HouseKeeping

Note You need to log in before you can comment on or make changes to this bug.