We're a community of 1.1M IT Pros here for help, advice, solutions, professional growth and fun. Join us!
1,080,650 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Start New Discussion Reply to this Discussion

Recover Root Password

How to recover root password when grub is lock

2
Contributors
2
Replies
3 Days
Discussion Span
1 Year Ago
Last Updated
3
Views
raju1234
Newbie Poster
11 posts since Mar 2012
Reputation Points: 0
Solved Threads: 0
Skill Endorsements: 0

Boot into recovery mode from the install CD/DVD or Live CD.
From there you can access the terminal and mount the device containing /etc (usually /dev/hda1).
Edit the shadow file and just remove the encryption string for the root account.

Example:
From root:$1$aB7mx0Licb$CTbs2RQrfPHkz5Vna0.fnz8H68tB.:10852:0:99999:7:::
To root::10852:0:99999:7:::

Then just reboot and login as root.
When asked for a password, just hit enter. And then use passwd to change password.

Oxiegen
Master Poster
761 posts since Jun 2006
Reputation Points: 87
Solved Threads: 149
Skill Endorsements: 5

How can i access terminal through live cd

raju1234
Newbie Poster
11 posts since Mar 2012
Reputation Points: 0
Solved Threads: 0
Skill Endorsements: 0

This article has been dead for over three months: Start a new discussion instead

Post: Markdown Syntax: Formatting Help
 
You
 
© 2013 DaniWeb® LLC
Page generated in 0.0694 seconds using 2.64MB