change root password
Hi,
Could someone tell me how to change the root password? I tried using "passwd" but it did not work. Thanks! |
As root:
Code:
echo "root:<password>" | chpasswd |
Here the basic syntax for passwd:
Code:
NAME For a more detailed info read the man for passwd Code:
$ man passwd Regards |
First thing is, you should be root to change root password. So switch to root user and then invoke:-
Code:
~$ passwd Code:
~$ passwd -r nis <username> |
Which distro are you using? If it's Ubuntu or an Ubuntu derivative, the root account is disabled.
|
All times are GMT -5. The time now is 07:17 AM. |