I am trying to change the root password in my Ubuntu system but I am getting an error. I disabled password prompt when calling sudo
. So I can execute root commands (eg. sudo apt-get install
) without typing root password.
ashot@ashot-desktop:~$ sudo passwd root
passwd: Authentication token manipulation error
passwd: password unchanged
sudo passwd
?sudo -s -H
(to launch a sub-shell as root) followed bypasswd
?sudo su -
to obtain a root shell and change the password there