I'm using redhat el 5.4. I was trying to change the root password under single user mode. I got no error when I ran passwd.

However, when I boot from normal mode, my new password is still not accepted.

Appreciate your help

link|improve this question
Is there any chance you are mounting a new /etc on a different partition once booted? – Paul Nov 22 '11 at 0:00
It finally worked after several tries. I don't know what happened though. Thanks for looking into it anyway – Phil Nov 22 '11 at 3:01
No problem, please add and accept your comment as an answer so the question is removed from unanswered. – Paul Nov 22 '11 at 3:02
feedback

2 Answers

up vote 0 down vote accepted

It finally worked after several tries. I don't know what happened though. Thanks for looking into it

link|improve this answer
feedback

Often the reason you can't change the password is because the boot volume is mounted as read-only. Try mounting your root filesystem with mount -w before trying to change the password.

link|improve this answer
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.