Go2Linux | Linux Operating System

A site dedicated to: Linux Operating System

How to assign a password to root user in Ubuntu

Date: 2008-04-02 00:00:00 -0400

Ubuntu by default has no root password, and you can also configure Debian in that way if you choose the advanced installation option, and decide not to use the root password.

But what to do if later you need the root user? well you just need to assign a password to the root user and then you will be able to switch to root user.

sudo passwd

Type a good strong password twice, and you are done.

su -

Type the root password and voila! you are logged as root, you know you have to be carefull on what you do being root right?

If you liked this article please share it.

powered by TinyLetter

If you want to contact me in any other way, please use the contact page.