LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices


Reply
  Search this Thread
Old 02-16-2013, 08:21 PM   #1
thirstonlinux
Member
 
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, 08:33 PM   #2
SalmonEater
Member
 
Registered: Jun 2010
Location: Up the Big River w/o paddle
Distribution: Salent & Slackel
Posts: 131

Rep: Reputation: 19
http://www.linuxquestions.org/questi...ssword-158800/
 
Old 02-16-2013, 09:01 PM   #3
joecam1673
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, 07:40 PM   #4
thirstonlinux
Member
 
Registered: Jul 2011
Posts: 62

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


Reply


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 08:38 AM
Forgot password. Please help. larryalk Slackware 4 05-05-2010 05:35 AM
The system forgot the root password trainee Slackware 3 05-17-2009 05:51 PM
How to retrieve( or reset) root password in Mandrake Linux, as I forgot my password? Reghunath Linux - Software 4 05-08-2008 05:11 AM
forgot my password ? i can change the password JrLz Linux - Security 9 04-06-2004 08:36 PM


All times are GMT -5. The time now is 10:59 PM.

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