I have a fresh server which was configured for SSH key authentication. My /etc/shadow contains
root:!;...
The account is already locked. This results in copying the locked status to my newly created user.
When i log in with the new user with SSH key authentication, i get:
WARNING: Your password has expired.
You must change your password now and login again!
Changing password for sammy.
(current) UNIX password:
I think the "!" and "*" should be handled in the same way!?
|
if [ "${encrypted_root_pw}" != "*" ]; then |
I have a fresh server which was configured for SSH key authentication. My /etc/shadow contains
root:!;...
The account is already locked. This results in copying the locked status to my newly created user.
When i log in with the new user with SSH key authentication, i get:
WARNING: Your password has expired.
You must change your password now and login again!
Changing password for sammy.
(current) UNIX password:
I think the "!" and "*" should be handled in the same way!?
automated-setups/Ubuntu-18.04/initial_server_setup.sh
Line 33 in df282c1