Welcome to the most active Linux Forum on the web.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This 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!


  Search this Thread
Old 02-16-2013, 07:21 PM   #1
Registered: Jul 2011
Posts: 62

Rep: Reputation: Disabled
forgot system password

Hi All,

I forgot the system password and root password for my RHEL6 login.

I tried to enter in the singleuser mode and change it. When I get into the single usermode, it directly logged me in as root@localhost#.

After I enter the passwd command nothing happens.
When I do echo $? it returns the value 1

Help me to change my root and system password
Old 02-16-2013, 07:33 PM   #2
Registered: Jun 2010
Location: Up the Big River w/o paddle
Distribution: Salent & Slackel
Posts: 131

Rep: Reputation: 19
Old 02-16-2013, 08:01 PM   #3
LQ Newbie
Registered: Aug 2009
Location: Chicago, IL
Distribution: Debian
Posts: 15

Rep: Reputation: 2
If passwd is choking it's kind of hard to guess why since it could be any number of reasons. I can recommend the first things I would check in your situation though;

Is etc and/or (s)bin mounted rw?
Anything in the logs?

Those two would probably sort this out pretty quickly I think. If not running "set -vx" and then running passwd might give you some more info on what exactly is failing. If you're still unable to get it and you've got strace installed that would be where I could look next "strace passwd".

Hope some of that helps.
Old 02-17-2013, 06:40 PM   #4
Registered: Jul 2011
Posts: 62

Original Poster
Rep: Reputation: Disabled
"passwd -d root" deleted the root passwd and was able to reset it later.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
forgot my lfs system password..what to do now? akkikaushik Linux From Scratch 34 11-02-2014 07:38 AM
Forgot password. Please help. larryalk Slackware 4 05-05-2010 04:35 AM
The system forgot the root password trainee Slackware 3 05-17-2009 04:51 PM
How to retrieve( or reset) root password in Mandrake Linux, as I forgot my password? Reghunath Linux - Software 4 05-08-2008 04:11 AM
forgot my password ? i can change the password JrLz Linux - Security 9 04-06-2004 07:36 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 03:38 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration