Showing posts with label enable root account. Show all posts
Showing posts with label enable root account. Show all posts

Thursday, October 20, 2016

Enable root account on Linux

To enable root account, you must have administrative privileges. Usually what that means is, you must be a sudoer. sudoers can run sudo command.

To enable root account run the following command,

sudo passwd
[sudo] password for shovon: 

Enter your current accounts password and press <Enter>. Then you will see the following prompt:

Enter new UNIX password: 

Enter the password that you want root account to have and press <Enter>, Then you will see the following prompt:

Retype new UNIX password: 

Retype the root password and press <Enter>. You will see the following line.

passwd: password updated successfully 


Congrats! You have successfully enabled root account.

Change root Password of Linux

To change the root password run the following command,

sudo passwd
[sudo] password for shovon: 

Enter your current account's password and press <Enter>. Then you will see the following prompt:

Enter new UNIX password: 

Enter the password that you want root account to have and press <Enter>, Then you will see the following prompt:

Retype new UNIX password: 

Retype the root password and press <Enter>. You will see the following line.

passwd: password updated successfully 


Congrats! You have successfully changed the root password.