View Full Version : [SOLVED] Drop To Root Shell Prompt not asking for password
beew
August 17th, 2011, 10:36 AM
Hi,
Just logged into recovery mode to fix something, I picked "drop to root shell prompt with network" and completed the task rather easily. But it occurs to me that I was never asked for my password. I don't think this is the way it should be, I probably forgot to set something when I installed the system. Please advise. Thanks.
LowSky
August 17th, 2011, 11:46 AM
you are in root shell. Ubuntu doesn't set root up by default so it has no password. Your first user account is a sudo powered account so it makes up for the lack of root.
in other words: don't worry it is normal.
Paqman
August 17th, 2011, 12:40 PM
I don't think this is the way it should be
Nope, that's how it's supposed to work. Bear in mind that anybody with physical access to your machine can do likewise.
beew
August 17th, 2011, 06:17 PM
Thanks for the reply. But if anyone can boot into root shell and perform administrative tasks without password wouldn't that be a security loophole?
pqwoerituytrueiwoq
August 17th, 2011, 06:50 PM
google grub password
also check for a power on password in your bios
also a root password is not set sine that enables root login via gui
bodhi.zazen
August 17th, 2011, 06:53 PM
Thanks for the reply. But if anyone can boot into root shell and perform administrative tasks without password wouldn't that be a security loophole?
This has been discussed many many times, thus I moved your thread.
https://wiki.ubuntu.com/SecurityTeam/FAQ#Rescue_Mode
google grub password
also check for a power on password in your bios
Physical access is root access, setting a password on your bios or grub adds very little security, but you can do that if it makes you feel better.
A better solution is to encrypt the installation with LUKS.
jwbrase
August 17th, 2011, 07:38 PM
Thanks for the reply. But if anyone can boot into root shell and perform administrative tasks without password wouldn't that be a security loophole?
It is somewhat, but as has been said, a bigger security breach has already happened if an untrusted person gains physical access to your machine. Password protecting physical access will stop an ignorant or casual attacker, but won't do more than slow down someone who really wants to break in (and anyone who really wants to break in will steal the machine so that they have all the time they need without you interrupting). The ignorant or casual attacker (For example, a curious 5-year-old or an overly nosy guest who starts messing with your computer while you're in another part of the house) is unlikely to try rebooting to get into recovery mode. The determined attacker won't be stopped by finding that you've password protected your root account.
Paqman
August 17th, 2011, 09:42 PM
Thanks for the reply. But if anyone can boot into root shell and perform administrative tasks without password wouldn't that be a security loophole?
Not particularly. Anybody with physical access to your machine can circumvent most kinds of security. As bodhi.zazen says: "Physical access is root".
Thewhistlingwind
August 17th, 2011, 09:53 PM
this has been discussed many many times, thus i moved your thread.
https://wiki.ubuntu.com/securityteam/faq#rescue_mode
physical access is root access, setting a password on your bios or grub adds very little security, but you can do that if it makes you feel better.
A better solution is to encrypt the installation with luks.
+1
pi.boy.travis
August 17th, 2011, 10:28 PM
Physical access is root access,
This should be a poster. Or a t-shirt.
beew
August 18th, 2011, 06:09 PM
Thanks for all the replies. I was puzzled because according to the Ubuntu Wiki it will ask for the password. See point 8
https://wiki.ubuntu.com/RecoveryMode
But the explanations make sense.
beew
August 18th, 2011, 06:13 PM
This has been discussed many many times, thus I moved your thread.
Well I was not really discussing the philosophical issue of whether it should or shouldn't ask for password. I was asking the technical question of whether I should expect a prompt for password or not if I have set things up correctly so it shouldn't be in the recurring section.
But anyway the issue is solved. Thanks to everyone who has replied.
aysiu
August 20th, 2011, 03:53 PM
Thanks for all the replies. I was puzzled because according to the Ubuntu Wiki it will ask for the password. See point 8
https://wiki.ubuntu.com/RecoveryMode
But the explanations make sense.
Yes, that's incorrect. I don't know who wrote that. It's never prompted for a password unless you set a root password, and the root account is disabled for login in Ubuntu by default and always has been.
cariboo
August 20th, 2011, 04:32 PM
If you have a launchpad account, you can log in and change the content of most Ubuntu wiki pages.
I would encourage anyone that finds an error to login and fix it, instead of not doing anything about it.
Powered by vBulletin® Version 4.2.2 Copyright © 2025 vBulletin Solutions, Inc. All rights reserved.