run as root from install cd?

Asked by Dave DeHerder

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

 thanks

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu Edit question
Assignee:
No assignee Edit question
Solved by:
Dave DeHerder
Solved:
Last query:
Last reply:
Revision history for this message
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.

Revision history for this message
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.

thanks

Revision history for this message
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.

Revision history for this message
Iain Lane (laney) said :
#4

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