Ubuntu – How to change root password in ubuntu


I am trying to change root password in my Ubuntu system.

This is what I did:

ashot@ashot-desktop:~$ sudo passwd root 
passwd: Authentication token manipulation error 
passwd: password unchanged

How do I change root password in Ubuntu?

Best Answer

Usually there is no need to set a root password. See: https://help.ubuntu.com/community/RootSudo

To set or change your (root) password:

sudo -i

To lock it again

sudo passwd -dl root
Related Question