Why not change the root password centos?

Tell me how to change the password on Rute from under another user?
sudo passwd root tried
sudo passwd root
Changing password for user root.
New password:
Retype new password:
passwd: all authentication tokens updated successfully.


but still can't log in as root.
Tell me what you are doing wrong
June 14th 19 at 20:51
1 answer
June 14th 19 at 20:53
Solution
that is, I need to set the login password for root from ssh? - brigitte_Klein commented on June 14th 19 at 20:56
Yes
https://www.opennet.ru/opennews/art.shtml?num=42765
By default, the value of the PermitRootLogin configuration Directive changed from "yes" to "prohibit-password", i.e. a remote login as root user with password-interactive authentication is now forbidden. When you specify values, without-password, or prohibit-password authentication is allowed only by key or via GSSAPI;
- Violet_Wiso commented on June 14th 19 at 20:59
,
did not help
first set the value to no, then try with without - password
no results - brigitte_Klein commented on June 14th 19 at 21:02
, PermitRootLogin yes and restart sshd - Violet_Wiso commented on June 14th 19 at 21:05
all helped, thank you very much) - brigitte_Klein commented on June 14th 19 at 21:08

Find more questions by tags CentOSPasswordsLinux