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 09-24-2004, 01:53 AM   #1
LQ Newbie
Registered: Sep 2004
Location: Karachi
Distribution: gentoo
Posts: 21

Rep: Reputation: 15
Root Password!

i have forgotten my root password,
what should i do to retrieve it?
Old 09-24-2004, 02:18 AM   #2
Registered: Aug 2004
Location: /dev/null
Distribution: Slack 10, Debian
Posts: 99

Rep: Reputation: 15
Not much you can do besides MD5 brute force to recover it. But since you have physical access, you can circumvent it. One way is to try to boot into single user mode from GRUB or Lilo, by adding 1 to the end of the boot parameter. Look up which line to add it to to whichever boot loader you have. On some distros this will boot into a root shell that you can do whatever you want, and if so you can reset your root password to whatever you want. Option two might be to boot into a live disk, mount your root partition, then edit the file /etc/shadow. Copy the second field, between the two : : marks of a user you know their password into the second field for the root user's password. Then your root will have the password that whoever you copied into their line.
Old 09-24-2004, 02:20 AM   #3
Registered: Apr 2003
Location: Buenos Aires, Argentina
Distribution: Slackware, Gentoo
Posts: 397

Rep: Reputation: 30
There are so many threads on the same subject...

You need to boot into single user mode, or use a LiveCD to chroot your partition and change the root password.


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
How could normal user obtain root password or change root password ckamheng Debian 18 02-18-2009 11:28 PM
Booting into Single User on MDK 9 asks for root password instead of booting into root acadcworks Linux - General 6 01-10-2006 07:51 AM
root password amer_58 Linux - Newbie 6 08-20-2005 03:41 PM
Logged in as root, prompted for root password ta0kira Slackware 13 04-25-2005 02:29 AM
root / SU password Stephanie Linux - General 9 09-05-2002 12:13 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 08:00 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