Changing password fails thought shell announces success -Hoary and Warty-

Bug #18244 reported by Mélodie
8
Affects Status Importance Assigned to Milestone
shadow (Ubuntu)
Invalid
Critical
Unassigned

Bug Description

Hello,
I had this bug when trying Warty shortly, and I didn't report at this time, as I
was just discovering the distribution.
So, this evening I changed my password, the message was as following:
joyce@papillon:~$ sudo passwd
Password:
Enter new UNIX password:
Retype new UNIX password:
passwd: password updated successfully
joyce@papillon:~$

but a little time later when I entered a 'sudo' command lign, the shell refused
my new passwd. As the result was negative three times in a row, I entered my
ancian password,
and the command lign did work.
I checked to be sure I was not mistaking, and changed the password again a
little later,
with a few caracters which were different. (Upper and lower cases plus numbers,
anyway) and the result falled the same.
J.M

Revision history for this message
postmast3r (postmast3r) wrote :

Sudo is configured to ask for the current user's password, not root's. If you
want to change the password you use for sudo, you need to change the password
for your user account by running "passwd" without prefixing it with "sudo".
When you ran "sudo passwd" instead of "passwd", you were changing the root
account's password and not your user account's password.

Revision history for this message
Mélodie (meets) wrote :

(In reply to comment #1)
> If you want to change the password you use for sudo, you need to change the
password
> for your user account by running "passwd" without prefixing it with "sudo".
Ok, thanks, and sorry for the annoyance.
Best greetings, J.M

Revision history for this message
Matt Zimmerman (mdz) wrote :

Closing per discussion

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.