LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices



Reply
 
Search this Thread
Old 09-16-2003, 02:46 AM   #1
TAAN
Member
 
Registered: Sep 2003
Posts: 31

Rep: Reputation: 15
How to break linux password


if you forget your root password and can't get access to your machine here is the solution:

1- when you get into GRUP boot loader ,and when the highlight is on linux Press 'a' .

to get into rescue mode press space and enter '1' at the end of the line:

root ...................... LABLE:/ 1

then press 'b' to boot

2- when you get into black screen with cursor, write down the command:

# passwd

enter your password

#exit

to exit the rescue mode

and have fun.....

Last edited by TAAN; 09-16-2003 at 02:50 AM.
 
Old 09-16-2003, 03:11 AM   #2
RHnewb
LQ Newbie
 
Registered: Sep 2003
Posts: 6

Rep: Reputation: 0
you can also hit "a" and boot to single user mode by typing space single. From there you can modify the passwd by removing the x (which signifies the password)
i.e.

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

This will set the password to blank for any account you reset.

Can do basically the same thing by booting in single user mode with lilo....

Just another way to do the same thing
 
Old 09-16-2003, 04:03 AM   #3
greenhornet
Member
 
Registered: Mar 2002
Location: Sydney, Australia
Distribution: RHEL, Fedora, Yellow Dog
Posts: 43

Rep: Reputation: 15
and this is why we all set GRUB boot loader passwords when we setup our servers... right kids... right.
 
Old 09-16-2003, 04:15 AM   #4
TAAN
Member
 
Registered: Sep 2003
Posts: 31

Original Poster
Rep: Reputation: 15
loooooooooooooooooooooooooooooooolzzz
but also we can boot from bootable CD reinstall grub and have fun ....... )
 
Old 09-16-2003, 06:04 AM   #5
fatgod
Member
 
Registered: Mar 2002
Location: Edinburgh, Scotland
Distribution: Suse 7.2, Gentoo 1.4, Solaris 9
Posts: 661

Rep: Reputation: 30
you can force single user mode to ask for roots password before alowing access.

Some distro's do this by default. Such as SuSE. which I discovered to my peril. Until about the 7th hour, when I suddenly remembered what it was

There are docs on tldp.org about securing single user mode.
 
Old 09-16-2003, 09:35 AM   #6
greenhornet
Member
 
Registered: Mar 2002
Location: Sydney, Australia
Distribution: RHEL, Fedora, Yellow Dog
Posts: 43

Rep: Reputation: 15
Thats also why we all set BIOS passwords... right kids... right.
 
Old 09-16-2003, 11:34 AM   #7
h1tman
Member
 
Registered: Jul 2003
Distribution: Slackware 11
Posts: 439

Rep: Reputation: 30
thanks teacccheerr
 
Old 09-16-2003, 01:58 PM   #8
fatgod
Member
 
Registered: Mar 2002
Location: Edinburgh, Scotland
Distribution: Suse 7.2, Gentoo 1.4, Solaris 9
Posts: 661

Rep: Reputation: 30
Umm, BIOS passwords are circumventable. A secured linux box is not. Hell you can show me any windows system and I can easily break into it via changing the Admin password.

There's even a widly distributed linux boot disk that changes the MS-Windows Administrator password to one of your choosing But you wont find one for *NIX

Last edited by fatgod; 09-16-2003 at 02:00 PM.
 
Old 09-16-2003, 06:42 PM   #9
trickykid
Guru
 
Registered: Jan 2001
Posts: 24,133

Rep: Reputation: 199Reputation: 199
Good ways to secure your machine from the above techniques listed above:

1. Don't give any unauthorized person physical access to the machines.
2. Don't forget your own or root's password.

I think that's all..

 
  


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 know when someone tried to break root password? mayank_a Linux - General 3 10-10-2005 09:51 PM
break grub loader password alvi2 Linux - Security 3 05-25-2005 02:51 AM
Is it possible to break the system password? ccalvin12 Linux - Security 7 02-22-2005 12:38 PM
Root password: do certain characters "break" Linux? Sumleilmus Linux - Newbie 3 12-29-2004 12:41 AM
linux halt after a long time break NeoAnderson Linux - General 1 10-21-2002 12:30 PM


All times are GMT -5. The time now is 12:31 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration