LinuxQuestions.org
Help answer threads with 0 replies.
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 09-24-2004, 01:53 AM   #1
p0rtzer0
LQ Newbie
 
Registered: Sep 2004
Location: Karachi
Distribution: gentoo
Posts: 21

Rep: Reputation: 15
Root Password!


Hi..
i have forgotten my root password,
what should i do to retrieve it?
 
Old 09-24-2004, 02:18 AM   #2
realjustin
Member
 
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
serz
Member
 
Registered: Apr 2003
Location: Buenos Aires, Argentina
Distribution: Slackware, Gentoo
Posts: 397

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

http://www.linuxquestions.org/questi...der=descending

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


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
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


All times are GMT -5. The time now is 11:21 AM.

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