RIdiculously misleading error message from passwd

Bug #590300 reported by Grondr
18
This bug affects 3 people
Affects Status Importance Assigned to Milestone
shadow (Ubuntu)
Triaged
Medium
Unassigned

Bug Description

In Ubuntu server 10.04 LTS, I typed passwd to change my password and accidentally typed the new password in response to the prompt for the current password. Instead of saying "incorrect password" or something equally reasonable, which would have caused me to smack my forehead and do it right the next time, I got the insane response "passwd: Authentication token manipulation error"! This caused me to go down a rathole for fifteen minutes, reading many pages with many possible reasons for this error, none of which were "you mistyped your original password".

This is a real user-interface FAIL and is certainly a regression in understandability. It's obviously been there for a while; 9.04 does this, although I note that Hoary 5.04 (yes, I still have a machine that old) says "passwd: Authentication failure" instead, which, while still not exactly user-friendly, at least puts "authentication" and "failure" -and nothing else- into the error to give people half a clue that maybe they mistyped something. (It's still not an error message users should see, compared to "incorrect password".) But the current error message is so obfuscated ("token manipulation error"---wtf is -that-?) that it's absolutely no help at all---either to a user trying to figure out what's going on, -or- to Google, considering how many other scenarios cause it to spit out that error message.

Yuck.

Tags: bitesize
Phillip Susi (psusi)
Changed in shadow (Ubuntu):
importance: Undecided → Medium
status: New → Triaged
tags: added: bitesize
Changed in shadow (Ubuntu):
assignee: nobody → Gayan Weerakutti (reversiblean)
Changed in shadow (Ubuntu):
assignee: Gayan Weerakutti (reversiblean) → nobody
Revision history for this message
Matthew Kenigsberg (matthewkenigsberg) wrote :

I don't think this is a problem with shadow - it looks like that error message is being given by pam. It makes a little more sense for pam_chauthtok to give that error.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.