Help can not logging in as root

Lee Braiden lee_b at
Mon Sep 12 12:22:46 UTC 2005

On Monday 12 September 2005 13:00, David wrote:
>             How do I long in as the root user because I wish to install
> some software
> Please help I did not see an area for typing the root password on the
> original setup

Ubuntu doesn't work that way.  It uses sudo.

To run a command as root, like echo hello, just put sudo in front:

  sudo echo hello

The first time you run sudo, you'll be asked for *your own* password -- the 
same one you logged in with as whichever user you normally are.  If you use 
sudo again soon after, it will trust that you're the same person, and just 
accept it.  After a while, that times-out, though, and you'll be asked for a 
password again.

If you need to do a lot of commands or to do complex shell commands, you can 
get a root shell with:

  sudo -s

Read the sudo man page for more, and also the ubuntu guides, since they would 
have explained all of this to you.

Lee Braiden
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <>

More information about the ubuntu-users mailing list