Visit Jeremy's Blog.
Go Back > Forums > Linux Forums > Linux - General
User Name
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.


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

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

Ver Linux
Password lost , Want to reset "ROOT" password that solve

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
Senior Member
Registered: Jun 2011
Location: Stuttgart, Germany
Distribution: Mint, Debian, Gentoo, Win 2k/XP
Posts: 1,099

Rep: Reputation: 344Reputation: 344Reputation: 344Reputation: 344
Hi there,

Originally Posted by ANDYCHAN View Post
Ver Linux
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
LQ Muse
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,502

Rep: Reputation: 2617Reputation: 2617Reputation: 2617Reputation: 2617Reputation: 2617Reputation: 2617Reputation: 2617Reputation: 2617Reputation: 2617Reputation: 2617Reputation: 2617
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 " 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


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 > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 07:12 PM.

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
Open Source Consulting | Domain Registration