LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
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-30-2003, 06:33 PM   #1
Joey.Dale
Member
 
Registered: Jun 2003
Location: Tampa, Fl
Distribution: Gentoo, Slackware
Posts: 828

Rep: Reputation: 39
root password


Hi all,

Whats up? I just aquared (sp?) an older computer with RH 7.3 installed. I can not login, because I do not know the root password. What can I do?

p.s.
to dave_ross,

Thank You for puting that warning at the end of your signature, but, I wanted to see what does (old computer with 2.5 Gig hd), funny as hell, but, when/why would someone use that comand?
 
Old 08-30-2003, 07:43 PM   #2
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 269Reputation: 269Reputation: 269
You'll need to boot into single user mode or straight to a shell to change the password. This has been convered many times before, a quick search will most likely find detailed directions if you need them. Regards.
 
Old 08-30-2003, 07:50 PM   #3
Joey.Dale
Member
 
Registered: Jun 2003
Location: Tampa, Fl
Distribution: Gentoo, Slackware
Posts: 828

Original Poster
Rep: Reputation: 39
Thanks
 
Old 08-30-2003, 07:51 PM   #4
tmorton
Member
 
Registered: Jan 2003
Location: In front of my computer in Oregon, USA
Distribution: Slackware
Posts: 198

Rep: Reputation: 31
Hello!
I'd boot from the rescue disk, mount your partition, and edit your /etc/passwd file... Delete the password entry for the root user so it looks like this:
root:[password used to be here]:[more junk here...]
Then, reboot, and login as root...you shouldn't be prompted for the password. Then, run the passwd command to set a new root password, otherwise, your computer will be without a root password...very, very, bad...

You could of course just do a clean reinstall...
--Taj
 
Old 08-31-2003, 10:50 AM   #5
Joey.Dale
Member
 
Registered: Jun 2003
Location: Tampa, Fl
Distribution: Gentoo, Slackware
Posts: 828

Original Poster
Rep: Reputation: 39
Thank You
 
Old 08-31-2003, 11:01 AM   #6
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 79
Re: root password

Quote:
Originally posted by Joey.Dale
Hi all,

Whats up? I just aquared (sp?) an older computer with RH 7.3 installed. I can not login, because I do not know the root password. What can I do?

p.s.
to dave_ross,

Thank You for puting that warning at the end of your signature, but, I wanted to see what does (old computer with 2.5 Gig hd), funny as hell, but, when/why would someone use that comand?
You only do it if you want to remove all files on your compurer that you have write access too. The meaning being, if everything goes bottoms up you can just reinstall and start where you left off (always make sur eyou have backups though) That is tgreat thing about computers!

Follow these steps to reset your root password:
1) Reboot your computer.
2) When the grub bootloader appears on the screen select the entry for your linux system - it may be the only one.
3) Press the "e" key to edit the entry.
4) Select the line beggining with "kernel".
5) Press the "e" key again
6) Type " single" no quotes
7) Press enter
8) Press "b" to boot
9) When the prompt appears type "passwd" press enter
10) Enter a new password when prompted
11) Reboot by typing "shutdown -r now"
 
Old 08-31-2003, 12:58 PM   #7
Joey.Dale
Member
 
Registered: Jun 2003
Location: Tampa, Fl
Distribution: Gentoo, Slackware
Posts: 828

Original Poster
Rep: Reputation: 39
thanks, it worked, but, could someone use that to gain root access and mess someone else's computer up (i.e.) rm -rf /
 
Old 08-31-2003, 01:01 PM   #8
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 79
Only if they have physical access to your computer. That is why it is safer to include a bios password and bootloader password too. Even this will not prevent someone physically removing the drive and mounting it in another system.
 
Old 08-31-2003, 06:58 PM   #9
Nikita007
LQ Newbie
 
Registered: Aug 2003
Location: Florida
Posts: 8

Rep: Reputation: 0
Hi this is NIKITA and I am having similar problems. I tried the steps from posting #6... and it when I was GRUB pressed "e" but it gives me no choices. I the only iption I think I get is "i" them enter a password which I don't know. What do you say?
 
Old 09-01-2003, 12:43 PM   #10
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 79
You will need to enter your grub password. IF that doesn;t work then boot with your rescue CD (CD1) then delete the root password from /mnt/sysimage/etc/shadow

Then just reboot.
 
  


Reply



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
How could normal user obtain root password or change root password ckamheng Debian 18 02-18-2009 10: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 06:51 AM
root password amer_58 Linux - Newbie 6 08-20-2005 02:41 PM
Logged in as root, prompted for root password ta0kira Slackware 13 04-25-2005 01:29 AM
root / SU password Stephanie Linux - General 9 09-04-2002 11:13 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 06:34 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
Open Source Consulting | Domain Registration