[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.
I am going though a book trying to learn linux, one of the tasks is to change the root password by booting into single user mode.
According to what I have found after I get into single user mode I should just have to type in passwd and it should prompt me for a new password... but it doesn't. tried passwd root with the same effect, same with passwd -S and passwd -S root. Nothing seems to work
anything ya'll can think of I have over looked?
this is RH6
this does work in multi-user mode.
Last edited by schrodingore; 02-27-2012 at 01:55 AM.
I am not very sure if I can answer that correctly but in RHEL 6 it is not possible to change password using single user mode.
Even I had faced this thing and came up with the command which already posted
If you are satisfied with the solution kindly mark the thread as " solved " as it may help others
notabley I havn't figued out how to update it yet (still getting a "this system is not registered with RHM") so that could be my issue.
Moved from Cisco to Linux so trying to figure this stuff out :-P
Thanks again for all the help
Without registering your system with RHN (Red Hat Network) you don't have access to updates. So first you'll have to run:
If you haven't paid for a subscription from Red Hat then you will not be able to update your system once the trial period is over. You should know that Red Hat is not free, so you either pay for a subscription and use their network for your updates or you change to a free clone of Red Hat, like CentOS or Scientific Linux. The fact that your system is not registered with Red Hat has nothing to do with the fact that you cannot change your root password in single user mode AFAIK.