Red HatThis forum is for the discussion of Red Hat Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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?
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:
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.
Distribution: RHEL/CentOS/SL 5 i386 and x86_64 pata for IDE in use
Posts: 4,790
Rep:
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.
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.
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.
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:
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.
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.