LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
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 05-03-2002, 10:28 AM   #1
medamnit
LQ Newbie
 
Registered: Apr 2002
Location: Australia
Distribution: RedHat
Posts: 16

Rep: Reputation: 0
root password


Hi, common question.
forgot root password?

Followed acid_kewpie advice and ran a search through the forum before asking question. But i need a little more help.

OK what I have found out...
1. Boot, in GRUB press ctrl x
2. then select single user mode.
3. login as root (no pwd required)
4. type passwd, and re-set password.
5. is that correct? seems to easy!
by the way, its RH 7.2 does that make a difference?!!!

for interest... anyone know of another way?

thanks,
medamnit
 
Old 05-03-2002, 10:32 AM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
hehe, well done... yeah that's the perfect way to do it if you're on lilo you'd do practiaclly the same thing, running "linux single" or "linux init 1"

have a donut!
 
Old 05-03-2002, 11:28 AM   #3
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 269Reputation: 269Reputation: 269
another way is to never forget the root password

sorry, but i don't like when people forget their own passwords, i deal with that crap everyday and it bugs me to think people set a password and don't remember it..
its a whole other story when you take the place of a admin who has left and he didn't leave the password for you to begin with.

oh well, that's my rant for the day..
 
Old 05-03-2002, 12:36 PM   #4
zLinuxz
Senior Member
 
Registered: Feb 2002
Location: Shanghai, CHINA
Distribution: RH 5.0,5.1 6.0,6.1 7.0,7.1,7.2,7.3.,8.0,9.0, RH Enterprise, Fedora C1, C2
Posts: 1,216

Rep: Reputation: 45
Lightbulb

Well, actually medamnit, there is such thing as a secure system if your pc can be physically be reached by someone. Even if you too grub off and simply booted directly into Linux, and you couldn't do the little control-x trick, there are still other ways of doing it.

Yeah acid!, some delicious crispy DONUT!!!!!!!!!!!!!!!!!!!

zLinuxz
 
Old 05-03-2002, 06:32 PM   #5
medamnit
LQ Newbie
 
Registered: Apr 2002
Location: Australia
Distribution: RedHat
Posts: 16

Original Poster
Rep: Reputation: 0
zLinuxz... what other ways do you know?

I actually haven't forgotten MY passwd, cousin pulled out his old linux machine and wanted to start using it. I just wanted to be the man of help thanks too you guys I should be able to help him out.

Thank you,

medamnit
 
Old 05-03-2002, 09:30 PM   #6
zLinuxz
Senior Member
 
Registered: Feb 2002
Location: Shanghai, CHINA
Distribution: RH 5.0,5.1 6.0,6.1 7.0,7.1,7.2,7.3.,8.0,9.0, RH Enterprise, Fedora C1, C2
Posts: 1,216

Rep: Reputation: 45
Arrow

Medamnit, I haven't done it myself, or seen either what other way there is to access some linux box and gain root priviliges. I'm sure if you got a floppy drive, you can do something to boot into single mode user if lilo or grub are disabled. But, I wouldnt know exactly what to do,
Alrighty!, you're your cousins Hero, :P


zLinuxz
 
Old 05-05-2002, 05:16 PM   #7
Calum
Member
 
Registered: Mar 2002
Location: London
Distribution: Red Hat 9
Posts: 302

Rep: Reputation: 30
this is bloody shocking! on a secure OS you should not be able to log in as root, unless you know the root password!!! this is as bad as that screensaver exploit to logon as root in WinNT!
 
Old 05-06-2002, 08:00 AM   #8
medamnit
LQ Newbie
 
Registered: Apr 2002
Location: Australia
Distribution: RedHat
Posts: 16

Original Poster
Rep: Reputation: 0
Hi,
i followed my steps i listed above but problem.

when entering ctrl x at GRUB.
no option was avaiable for single user mode
it came up with 'e' or 'c'.

anyone got the similar setup and could check this out?

thanks
medamnit
 
Old 05-06-2002, 08:27 AM   #9
frieza
Senior Member
 
Registered: Feb 2002
Location: harvard, il
Distribution: Ubuntu 11.4,DD-WRT micro plus ssh,lfs-6.6,Fedora 15,Fedora 16
Posts: 3,233

Rep: Reputation: 406Reputation: 406Reputation: 406Reputation: 406Reputation: 406
yup, i tried it (well, not the grub method, i do know my root password) typing passwd at the Single user prompt DOES NOT require the original password, but then again you DO have to be sitting physically in front of the target box for it to work (single user mode only works directly on the box unless perhaps configured otherwise, and i doubt very much that anyone would set that up too insecurely, and in most cases (other than the case of your own machine) that box is going to be either in a locked closet (or room), or somewhere that doesn't allow such physical access to the target machine, along with any terminals that have single user access. In short, nobody get any ideas as how to hack into that linux box you've been thinking about hitting with this new information
 
Old 05-06-2002, 08:43 AM   #10
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
Quote:
Originally posted by Calum
this is bloody shocking! on a secure OS you should not be able to log in as root, unless you know the root password!!! this is as bad as that screensaver exploit to logon as root in WinNT!
no it's not. are you seriously suggesting that if a server for a company goes down for example, and somehow the password for root becomes corrupted, or maybe someone changed it maliciously, there sghould be NO way to get that server working again? reformat the thing???? Lilo and Grub both have numerous security option that can require additional passwords in order to boot the system into a non predefined state, i.e. single user mode.

it's not an exploit. don't be daft.
 
Old 05-06-2002, 09:51 AM   #11
Calum
Member
 
Registered: Mar 2002
Location: London
Distribution: Red Hat 9
Posts: 302

Rep: Reputation: 30
if you say so, but security is only as secure as the weakest link in the chain. A company, as you say, would probably have all that stuff configured in a secure fashion. Many home users may not know how to, or even that the capability exists to either login as root without the password, or to stop someone from doing so.
Anything that can be exploited is an exploit.
 
Old 05-06-2002, 10:11 AM   #12
Mik
Senior Member
 
Registered: Dec 2001
Location: The Netherlands
Distribution: Ubuntu
Posts: 1,316

Rep: Reputation: 47
Well how far do you want to go to secure your computer as a home user? Someone needs to have physical access to your computer to change the root password in that way.
I'm sure any creative person who has physical access to your computer can find many ways to break it. A hamer should do a bit of damage. Do you also consider that as a weak link in the chain?

Last edited by Mik; 05-06-2002 at 10:14 AM.
 
Old 05-06-2002, 10:16 AM   #13
Calum
Member
 
Registered: Mar 2002
Location: London
Distribution: Red Hat 9
Posts: 302

Rep: Reputation: 30
not really, actually linux is very secure, for a lot of reasons, and i think that it's fine the way it is, but there's always room for improvement.

The winNT exploit i mention also requires physical access, but unlike linux (and this is the important bit) there is no way to configure winNT so that the exploit won't work, because M$ has not released a patch for it, and it's a closed source system.

So, actually, no i think it's fine so long as everybody does as they're supposed to, but the more backdoors get left open, by undereducated companies for example, the more people are going to use those backdoors. and so on.

I don't know much about it and i'm not up for an argument, i'm just saying an exploit is an exploit, if it ends up getting exploited by somebody...
 
Old 05-07-2002, 06:23 AM   #14
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
Quote:
Originally posted by Calum
I don't know much about it and i'm not up for an argument, i'm just saying an exploit is an exploit, if it ends up getting exploited by somebody...
if you are going to suggest that say, the su command is an explot, and logically say... rm is an exploit.. then yes it is an exploit.. but if rm isn't one, then neither is the ability to boot to single user mode.
 
Old 05-27-2002, 08:11 AM   #15
natso
LQ Newbie
 
Registered: May 2002
Location: England
Distribution: SuSE
Posts: 5

Rep: Reputation: 0
Unhappy Root Password Recovery

I've got a SuSE Linux box but don't know the root password.

I've tried the following, but it doesn't work as it still asks for a root password.

Any ideas??

>>>>>
I' tried....

1. At LILO prompt: linux single
2. The machine then boots into Single User mode, but then instead of getting a # prompt, it asks for the Root password - which is not 'blank', as I've tried that.

I've also tried booting from a floppy boot disk, but I get the same, as if whilst booting, it detects the hard disk, and reads those root password files.

<<<<<<<

thanks in advance for any help!!
 
  


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

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