LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Security
User Name
Password
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.

Notices


Reply
  Search this Thread
Old 11-30-2006, 08:34 PM   #1
bmwatts1019
LQ Newbie
 
Registered: Nov 2006
Posts: 3

Rep: Reputation: 0
Can i get into linux without knowing a username or password?


I recently purchased a laptop on ebay which already has linux redhat installed on it. It will load up to the login page but I don't have the username or password of the person who I bought the laptop from. Is there any way I can get into linux without knowing this and create my own username and password?
 
Old 11-30-2006, 09:05 PM   #2
Hitboxx
Senior Member
 
Registered: Mar 2006
Location: India
Distribution: Fedora
Posts: 1,562
Blog Entries: 3

Rep: Reputation: 68
Hi Welcome to LQ

Sure. First when you see the boot selection screen(grub) where you select redhat, hit 'e'. Select the kernel option and hit 'e' again. At the end of the line, type '1'. Hit enter and 'b' to boot. It will take you to a command shell with a prompt. You are in root mode now.(superuser)
Here
Code:
#passwd [i suggest you first change the root password]
#useradd *yourname* [add yourself]
#passwd *yourname* [give yourself a password]
#reboot [reboot and login using your new username]
Once you're into the system, you can delete the other user.
 
Old 11-30-2006, 09:12 PM   #3
severian23
Member
 
Registered: Jan 2003
Location: Stone Mountain, GA
Distribution: Currently: RHEL/Centos 5.x-6.x servers, Mint Desktop
Posts: 41

Rep: Reputation: 15
Hello,

Yes, you can do it with a rescue boot cd by booting up, going to a prompt, and changing the password for root, then booting up normally and create a user.

There is a section in the first edition of Linux Server Hacks by O'Reilly, called "Foregoing the Console Login" that covers ways of doing this.
 
Old 11-30-2006, 09:36 PM   #4
Capt_Caveman
Senior Member
 
Registered: Mar 2003
Distribution: Fedora
Posts: 3,658

Rep: Reputation: 69
If you plan to use this system, I'd highly recommend re-installing from scratch. You have no idea what this system was used for or what is installed/manipulated on the system. Doing your own installation is the only way to be sure that the system is secure.
 
Old 11-30-2006, 11:00 PM   #5
chort
Senior Member
 
Registered: Jul 2003
Location: Silicon Valley, USA
Distribution: OpenBSD 4.6, OS X 10.6.2, CentOS 4 & 5
Posts: 3,660

Rep: Reputation: 76
Quote:
Originally Posted by Capt_Caveman
If you plan to use this system, I'd highly recommend re-installing from scratch. You have no idea what this system was used for or what is installed/manipulated on the system. Doing your own installation is the only way to be sure that the system is secure.
I agree 100%. Do not use a system if you aren't 100% sure of how it was used & what was installed on it (i.e. if you didn't do all that yourself).
 
Old 12-01-2006, 09:29 AM   #6
leveex
LQ Newbie
 
Registered: Nov 2006
Location: Croatia
Distribution: Slackware 10.2
Posts: 26

Rep: Reputation: 15
or you can use live cd and mount drive where is linux installed, so you can see all files....
 
Old 12-01-2006, 03:51 PM   #7
bmwatts1019
LQ Newbie
 
Registered: Nov 2006
Posts: 3

Original Poster
Rep: Reputation: 0
Thanks everybody! I was able to change the root password and get into the system. I have another question though. I was thinking of thinking of changing the operating system to windows xp, which is what I have on my desktop and am more familiar with. I have an xp installation disk but when I put it in the cd-rom drive it does not start up automatically. How can I get it to run so I can install it?
 
Old 12-01-2006, 04:43 PM   #8
Mark-U5
LQ Newbie
 
Registered: Oct 2003
Location: Finland
Distribution: Gentoo
Posts: 3

Rep: Reputation: 0
CD-boot

hmm, ok, u need to select from BIOS the first boot device as CD-ROM / DVD.
or maybe escape at the boot brings up a quick boot menu.

Now you can also boot a linux cd and install a clean version of the wonderful LinuxOS and learn more about it.
Try different distros. ubuntu / kubuntu / Fedora Core / OpenSuse....

distrowatch com

is a good place to check for distros and Linuxquestion is wonderful place to find help.
Many problems already solved...and posted here.

Have Fun !
 
Old 12-01-2006, 06:58 PM   #9
Yogstr
LQ Newbie
 
Registered: Dec 2005
Posts: 21

Rep: Reputation: 0
Quote:
Originally Posted by bmwatts1019
Thanks everybody! I was able to change the root password and get into the system. I have another question though. I was thinking of thinking of changing the operating system to windows xp, which is what I have on my desktop and am more familiar with. I have an xp installation disk but when I put it in the cd-rom drive it does not start up automatically. How can I get it to run so I can install it?


There was once a time when you where not at all familiar with windows either. Why dont yo take the linux challenge, and dual boot your machine. Pick a distro...distrowatch.com is a good place to start (as Mark-U5 said) and soon you will wonder why you didnt do it years ago!

12 months ago, i did exactly that. Its been difficult at times to learn, but i now realise that windows is not required. Linux does most things better (whooo theres a sweeping statement).

I'm a Slacker...and proud of it!

Whatever you decide, good wishes & good luck to you.


Cheers
 
Old 12-07-2006, 12:59 PM   #10
archtoad6
Senior Member
 
Registered: Oct 2004
Location: Houston, TX (usa)
Distribution: MEPIS, Debian, Knoppix,
Posts: 4,727
Blog Entries: 15

Rep: Reputation: 234Reputation: 234Reputation: 234
Does this RH box have a "Winders" license sticker on it?

If not, technically you are pirating it, & by site policy we shouldn't be answering your Q's about installing XP; unless, of course, you bought a fresh copy for the purpose.

If you have time, find & read Richard Stallman's (RMS) "GNU Manifesto". I especially recommend the part about maintaining his honor by refusing to steal proprietary software. While others may take a Robin Hood attitude toward Billy & M$, RMS does not & that is why we have GNU/Linux available to us today.

Besides, you might be impressed & then converted -- I had been learning Linux on a 2nd box until mid-May of 2005 when the system drive on my W2k box failed. I moved the data drive to the Linux machine & I never looked back.

"Winders free for over 18 months, where's my chip?"
 
Old 12-07-2006, 03:12 PM   #11
phil.d.g
Senior Member
 
Registered: Oct 2004
Posts: 1,272

Rep: Reputation: 154Reputation: 154
Quote:
Originally Posted by archtoad6
Does this RH box have a "Winders" license sticker on it?

If not, technically you are pirating it, & by site policy we shouldn't be answering your Q's about installing XP; unless, of course, you bought a fresh copy for the purpose.
How do you know his installation disk isn't a retail copy bought so that he can install it on his new laptop?

I think we need to back off here a bit, he obviously knows about Linux, and he's found this site, but he still wants to use Windows, the op might not have the time nor the desire to learn and use another system.
 
Old 12-08-2006, 07:07 PM   #12
bmwatts1019
LQ Newbie
 
Registered: Nov 2006
Posts: 3

Original Poster
Rep: Reputation: 0
I am not pirating anything. Yes I did buy a new copy of windows to install on my laptop. I got the thing so that I could take it to work with me. I am a teacher who does not have a computer in my room and I wanted to take my laptop because I could get a lot of things done in my classroom with it. I don't have a lot of time to learn anything new, not that I'm opposed to it, I just have a classroom of 20 four year old's all day and three children of my own who are all under the age of 5. So you see it's not that I have anything against linux, I just know way more about windows. I think that it was kind of rude of you to jump to such conclusions. And besides I have someone who knows a lot more about computers working on my problem right now.
 
Old 12-09-2006, 12:52 AM   #13
Hitboxx
Senior Member
 
Registered: Mar 2006
Location: India
Distribution: Fedora
Posts: 1,562
Blog Entries: 3

Rep: Reputation: 68
Don't mind them bmwatts, do as comfortable as you please

If you do decide to give Linux a try, we are here if you need us.
 
Old 12-11-2006, 05:54 AM   #14
aus9
LQ 5k Club
 
Registered: Oct 2003
Location: Western Australia
Distribution: Icewm
Posts: 5,842

Rep: Reputation: Disabled
quote
I think that it was kind of rude of you to jump to such conclusions. And besides I have someone who knows a lot more about computers working on my problem right now.

Is this the new spirit of our teachers who ask a question, get some replies, then accuse some of jumping to conclusions when (the) teacher jumps to conclusions himself? Or is the last sentence designed to show he was not expecting any joy at this forum?

feel free to report me for stating my opinion.
 
  


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 to log into linux without knowing the password? ninelives1980 Linux - Security 8 11-11-2021 10:11 AM
Username and password to login Suse linux 10 honghoahoi Linux - General 4 01-20-2010 10:50 PM
Common username/password on Linux and Windows Yalla-One Linux - Networking 1 03-16-2005 05:50 AM
How do i re-install or delete a user without knowing the username or password? burnoutKyle Red Hat 4 03-12-2004 02:21 PM
Linux Username and password only ASCII? LogicMagic Linux - Newbie 5 02-26-2004 03:30 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Security

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