OSI & TCP/IP MODEL

How to Change Root Password in Ubuntu Linux

 


Temporary Switching to root

To temporarily elevate root user privileges, run the command prefixed with sudo  


sudo command-name


sudo su -

Run the whoami command to verify that the user is changed:


whoami

output

root

Changing Root Password

sudo passwd root

output

Enter new UNIX password:

Retype new UNIX password:

passwd: password updated successfully

Comments