August 6, 2008

Ubuntu : How to enable the root account

Ubuntu is one of the few Linux distributions out there that will not enable the root account, You might have noticed that unlike the other Linux distributions the Ubuntu is not asking for the root password while the installation is being done.This is why we are not able to access the root account.

How to enable root account ?

Enabling root account is a simple task, simply type
sudo passwd root
in your terminal window to change the root password.

Disabling the root account : sometimes you might need to disable the root account,

sudo passwd -l root
type this command in the terminal window, and it will disable the root account.

NB: it is suggested that you use the sudo command instead of using the root account.

No comments: