LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
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, 04: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, 05: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: 58
Because; http://www.redhat.com/docs/manuals/e...emergency.html
 
Old 02-14-2007, 06: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, 07:23 PM   #4
Brian1
LQ 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: 65
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, 06: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: 58
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, 09: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, 03: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, 10:25 AM   #8
Brian1
LQ 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: 65
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, 01:18 PM   #9
wmakowski
Member
 
Registered: Oct 2003
Location: Ohio
Distribution: Fedora 25, 26, RHL 5.2
Posts: 560

Rep: Reputation: 56
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



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

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

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