LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
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-14-2007, 05:33 PM   #1
linuxguy99
LQ Newbie
 
Registered: Feb 2007
Posts: 5

Rep: Reputation: 0
why password in emergency mode?


Anybody know why am I prompted for the root password when booting into emergency mode? That doesn't happen in single user mode.

Thanks
 
Old 02-14-2007, 06:10 PM   #2
Lenard
Senior Member
 
Registered: Dec 2005
Location: Indiana
Distribution: RHEL/CentOS/SL 5 i386 and x86_64 pata for IDE in use
Posts: 4,790

Rep: Reputation: 56
Because; http://www.redhat.com/docs/manuals/e...emergency.html
 
Old 02-14-2007, 07:06 PM   #3
linuxguy99
LQ Newbie
 
Registered: Feb 2007
Posts: 5

Original Poster
Rep: Reputation: 0
that just says how to get into emergency mode - not why I need the root password to get into emergency mode. I can get into emergency mode because I know the root password, but why doesn't single user mode ask me for it? I mean, if I have physical access to the box anyway, what difference does emergency mode make to have to ask for the root password?
 
Old 02-14-2007, 08:23 PM   #4
Brian1
Guru
 
Registered: Jan 2003
Location: Seymour, Indiana
Distribution: Distribution: RHEL 5 with Pieces of this and that. Kernel 2.6.23.1, KDE 3.5.8 and KDE 4.0 beta, Plu
Posts: 5,700

Rep: Reputation: 61
I never tried the option emergency before so I rebooted and see it ask for root's password just after kernel is loaded and before any runlevels are started. Only thing it mounts is the / partition and creates /proc. The / partition is mounted as read-only.

I don't see much of a benefit for it. I guess you can / as read-write and mount additional partitions needed. I don't see the need for it since I have like /usr and /home as seperate partitions. Not mounted in this mode. Why it would need root's password I am not sure unless you could hack the kernel at this point before the system is loaded. Once you type exit the system continues to load as if no stopping of the boot process was done.

How about asking the Redhat team and see what they say the usage of this mode. Post if you get an answer back.

Brian
 
Old 02-15-2007, 07:21 AM   #5
Lenard
Senior Member
 
Registered: Dec 2005
Location: Indiana
Distribution: RHEL/CentOS/SL 5 i386 and x86_64 pata for IDE in use
Posts: 4,790

Rep: Reputation: 56
Did you not notice that the partitions are read-only and almost nothing is loaded?? This mode is only used when you have a major issue with the filesystems and/or the init process (even single user mode cannot start for example). This safeguards the data so one can transfer/backup the information, root's password is need so the coreutils can used.
 
Old 02-15-2007, 10:53 AM   #6
linuxguy99
LQ Newbie
 
Registered: Feb 2007
Posts: 5

Original Poster
Rep: Reputation: 0
Yes, I know that emergency doesn't start init etc. and that you need to manually mount partitions, including /proc, and set / as rw if necessary, however, the point of the root password is really unknown as if I can boot emergency, I have to be physically at the box. So, I might as well even just boot into rescue mode off CD 1 and bypass emergency altogether and not be bothered with the root password. So, I can't see why it is asked for in emergency if I can just bypass it altogether using rescue where I can use the same utils.
 
Old 02-15-2007, 04:11 PM   #7
linuxguy99
LQ Newbie
 
Registered: Feb 2007
Posts: 5

Original Poster
Rep: Reputation: 0
just to add to this, if you pass init=/bin/bash to the kernel on boot, you get the same effect as using "emergency" or "-b" but without the password prompt. Strange.
 
Old 02-18-2007, 11:25 AM   #8
Brian1
Guru
 
Registered: Jan 2003
Location: Seymour, Indiana
Distribution: Distribution: RHEL 5 with Pieces of this and that. Kernel 2.6.23.1, KDE 3.5.8 and KDE 4.0 beta, Plu
Posts: 5,700

Rep: Reputation: 61
Well spent some time searching and asking on a few other forums. No one knows why. Only thoughts is something about maybe security. I would the only ones that will know the answer is the Redhat Team. I am sure they have to know why they did it. If you get an answer please post back. The world outside of Redhat would like to know.

Brian
 
Old 02-18-2007, 02:18 PM   #9
wmakowski
Member
 
Registered: Oct 2003
Location: Ohio
Distribution: Fedora 18, 19, RHL 5.2
Posts: 546

Rep: Reputation: 43
42! My best guess is they just want to make you more conscious of the fact that emergency mode is a little different than booting in single user mode. By entering the root passwd you acknowledge the fact that you really do know what you are doing.

Bill
 
  


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
password for single user mode V Naveen Linux - General 1 11-24-2006 06:27 AM
Samba user mode with out password lhrt Linux - Software 3 09-06-2006 09:27 AM
Suse Safe Mode Password? Mike Brown Linux - Newbie 1 07-29-2006 06:59 PM
Changing password in maintenance mode andy18 Linux - Newbie 4 08-21-2003 10:38 AM
RH9 - Rescue, single, and emergency mode? blackx Linux - Newbie 3 05-22-2003 03:03 PM


All times are GMT -5. The time now is 10:08 PM.

Main Menu
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