Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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

share|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

2 Answers 2

up vote 0 down vote accepted

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

share|improve this answer

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.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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