LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat
User Name
Password
Red Hat This forum is for the discussion of Red Hat Linux.

Notices


Reply
  Search this Thread
Old 02-06-2006, 06:48 PM   #1
hjepsen
LQ Newbie
 
Registered: Feb 2006
Posts: 2

Rep: Reputation: 0
Question lost user name and password for linux red hat help help


i have a laptop in my basement its an old one i even forgot i had it but im going to give it to my neice but ive lost, forgotten whatever the user name and password i used on it please help
 
Old 02-06-2006, 07:08 PM   #2
pljvaldez
LQ Guru
 
Registered: Dec 2005
Location: Somewhere on the String
Distribution: Debian Wheezy (x86)
Posts: 6,094

Rep: Reputation: 281Reputation: 281Reputation: 281
You can boot off a rescue floppy (like tom's root and boot disk http://www.toms.net/rb/) or a live CD (like knoppix http://www.knoppix.org/), mount your root partition and edit /etc/passwd. Look for the entry for root, remove the "x" from that line,

eg:
root:x:0:0::/root:/bin/bash

becomes
root::0:0::/root:/bin/bash

Now save the file, reboot and now root will not have a password. Don't forget to assign a password for root straight away with the passwd command.
 
Old 02-06-2006, 07:36 PM   #3
hjepsen
LQ Newbie
 
Registered: Feb 2006
Posts: 2

Original Poster
Rep: Reputation: 0
help lost user name and password

is there any way to just reformat the hard drive theres really nothing on there im afraid of losing
 
Old 02-06-2006, 07:39 PM   #4
pljvaldez
LQ Guru
 
Registered: Dec 2005
Location: Somewhere on the String
Distribution: Debian Wheezy (x86)
Posts: 6,094

Rep: Reputation: 281Reputation: 281Reputation: 281
Certainly. If you're installing an OS, just pop in the install CD and overwrite the whole drive with the new install.

Or pop in a knoppix CD and use "shred" to secure delete the entire hard drive. This basically low level writes over the whole drive several times to make sure no data can ever be recovered.

Or if it has a floppy, there's some floppy tools that will do the same. google for "secure delete floppy" or something like that. Here's one http://dban.sourceforge.net/

Last edited by pljvaldez; 02-06-2006 at 07:41 PM.
 
  


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
i forgot my password on red hat linux Joe120 Linux - Security 5 01-25-2006 06:39 AM
User password change for Red Hat Radius Server pld7 Linux - Security 1 08-17-2004 04:25 PM
i forgot my username and password, how can i open my red hat linux? josephgiselle Linux - Software 2 06-29-2004 09:21 AM
Registered Red Hat Linux user #XXXXXX ovparrilla Red Hat 1 04-21-2004 03:22 PM
New linux Red Hat User, Need help on my Asus MOB Ritmguy Linux - Software 1 10-18-2003 04:00 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat

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

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