Changing password fails thought shell announces success -Hoary and Warty-
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
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.