LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices

Reply
 
Search this Thread
Old 08-18-2012, 02:53 AM   #1
ANDYCHAN
LQ Newbie
 
Registered: Aug 2012
Posts: 1

Rep: Reputation: Disabled
Linux 2.6.15.1 The password lost , RESET PASSWORD


Ver Linux 2.6.15.1
Password lost , Want to reset "ROOT" password that solve
"UNEXPECTED INCONSUSTENCY" RUN fsck manually "


Hope anyone can answer me and give me a solution , Thanks!!

Last edited by ANDYCHAN; 08-18-2012 at 02:59 AM.
 
Old 08-18-2012, 03:14 AM   #2
Doc CPU
Member
 
Registered: Jun 2011
Location: Stuttgart, Germany
Distribution: Mint, Debian, Gentoo, Win 2k/XP
Posts: 999

Rep: Reputation: 294Reputation: 294Reputation: 294
Hi there,

Quote:
Originally Posted by ANDYCHAN View Post
Ver Linux 2.6.15.1
Password lost , Want to reset root password ...
I don't know what your system looks like and what constraints apply to it. But my approach would be:
  1. Boot a live distro on that machine from a CD or USB pen drive, and make sure you're root on that live system.
  2. Mount the root partition of the system's HDD.
  3. Make a backup copy of the file /etc/shadow on that partition.
  4. Edit /etc/shadow. Search for a line starting with "root:", probably the first one. Delete the portion between the first and the second colon. This part is the encrypted password and usually looks pretty garbled. Be careful not to change anything else. Save your changes.
  5. Try to reboot your installed distro. Now root should be able to log in with no password. For security reasons, immediately set a root password again. Choose one you'll remember. ;-)
  6. If starting up the system fails, repeat step 1 and 2, and restore the original /etc/shadow from the backup.

No warranty. Good luck. :-)

[X] Doc CPU
 
Old 08-18-2012, 08:05 AM   #3
John VV
Guru
 
Registered: Aug 2005
Posts: 12,956

Rep: Reputation: 1722Reputation: 1722Reputation: 1722Reputation: 1722Reputation: 1722Reputation: 1722Reputation: 1722Reputation: 1722Reputation: 1722Reputation: 1722Reputation: 1722
that is unless the /boot partition is encrypted for security reasons to STOP someone from doing the above

also there is NO operating system called "Ver Linux 2.6.15.1 " that is the VERSION of the kernel installed

this is not the current RHEL6.3 ( using the "kernel-2.6.32-279")
RHEL5.8 is using "kernel-2.6.18"

so this unknown OS is older than rhel 5.8
 
  


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 On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
lost password in ubuntu 9,04 how do I reset? brojer Linux - Newbie 1 03-21-2010 10:06 AM
Lost root password, can't reset MrMcGoo Linux - Security 7 11-12-2009 04:57 AM
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


All times are GMT -5. The time now is 10:00 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration