run as root from install cd?

Asked by Dave DeHerder on 2008-03-12

How can I become root while running off the install CD?
There is no sudu binary and I do not know the root pw.


Question information

English Edit question
Ubuntu Edit question
No assignee Edit question
Solved by:
Dave DeHerder
Last query:
Last reply:
Jim Hutchinson (jphutch) said : #1

I think technically you are root. Just precede any command with sudo and it will run with root privileges. There is no password.

Dave DeHerder (dwd) said : #2

Actaully, when I get logged in from the install CD I am logged in
as user ubuntu with uid=999. There is no sudo that I can find,
so sudo doesn't work either.

What did work for me was to hit F6 before selecting the install
option, and adding single to the end of the boot line. That got
me into single-user mode as root.


Jim Hutchinson (jphutch) said : #3

The live CD doesn't have a login. It boots straight to the desktop. I don't remember but older versions may have had a login screen. What version are you using? 7.10 is the latest. I'm not sure what user ID you should get but the live session user has sudo rights. You don't have to find sudo, just open a terminal and add sudo to the front of any command. For example,

sudo fdisk -l

to output your drive partitions. It won't ask for a password. Again, this may not have been the behavior of older versions but I can't remember any more. If you have an old version I would download a newer version.

Iain Lane (laney) said : #4

If you run "sudo -i", you will be given a bash shell with root privileges.