[SOLVED] passwd command not working in single user mode
Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Introduction to Linux - A Hands on Guide
This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter.
For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.
Click Here to receive this Complete Guide absolutely free.
Thanks, I'm still puzzled about why it doesn't work in RHEL 6 but does so without any problem in RHEL 6.2. There has been a similar thread here on LQ which didn't shed any light but confirms the issue. If you paid for a subscription then try contacting Red Hat support and see what they have to say about it.
Great! CentOS is a 'RHEL clone' aiming to be 100% binary compatible with RHEL. CentOS basically only removes branding and artwork. Nice catch on the bug. And you're welcome for the help, that's what LQ is all about, helping others with Linux. Since you were able to change the password, following the suggestion made by deep27ak, I guess your problem is solved. If you consider it so, then please mark your thread as solved.
Red Hat Linux Enterprise 6 (RHEL root password recovery)
I have RedHat Enterprise Linux 6 running on a VMWARE Player. I had not started the VM in a long time and could not remember the password. I want you to know that I did boot into single-user mode (others have already described how to do this), and then I did the
password -d root
I was then able to login with root without using a password and then when I got logged in, I set the password for the root account and then logged out and rebooted without any issues. Once I had root, I was able to change the password on my user account.