I am using Ubuntu 14.04.
I want to change the password of the root account. I tried the following procedure:
- Login with my own account (that has the
sudo
permission) sudo su root
passwd
- Enter the new password twice.
- I confirmed it said
passwd: password updated successfully
exit
- Trying to login root account with the new password via SSH --> FAIL!
Why passwd
command does not work here?
su -
or equivalent from your existing account? What isPermitRootLogin
set to in /etc/ssh/sshd_config? BTW, it's not recommended to enable password access to the root account via SSH: it would be better to set up key-based authentication – steeldriver Jul 02 '16 at 21:30