Home > Linux, Shell, Ubuntu > Assign a root password

Assign a root password

To be able to log in as root directly, you must assign a root password. This can be done with:

sudo passwd root

Afterwards, you can use

Categories: Linux, Shell, Ubuntu
  1. May 5, 2010 at 18:21

    I noticed you put Ubuntu in the post tag. For Ubuntu, there isn’t any reason to set a root password. If you want a persistent root prompt, you can just use sudo -i

    • May 5, 2010 at 21:55

      Yes, you are right. But sometimes it’s more comfortable to login as root and have full access to the whole system with a ui. I know for security reason one should be carefully with that.

      • May 6, 2010 at 04:34

        For full access to the whole system with a UI, I would recommend gksudo nautilus

  1. No trackbacks yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: