[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!
Notices
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.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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.
hmm notabley doing a
cat /usr/bin/passwd
screws up your command line :-P
Hi,
That's because you're trying to 'cat' a binary file. That would screw up your terminal indeed , so don't do it. To get it 'cleaned up', type CTRL-C until you get a normal prompt and then run
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)
Hi All,
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
reboot
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.