Skip to content
Snippets Groups Projects
Unverified Commit 6c154278 authored by Matthias Schiffer's avatar Matthias Schiffer
Browse files

base-files: fix check for empty password warning


Now that we know that the password is in /etc/shadow and not in
/etc/passwd, we can properly fix the logic for the empty password check.
Only 'root::' is an empty password, 'root:x:' and 'root:!:' allow no
password login at all.

This fixes the empty password warning still showing after the root password
has been locked using 'passwd -l root' (e.g. to allow public-key auth
only).

Signed-off-by: default avatarMatthias Schiffer <mschiffer@universe-factory.net>
parent 77f54eae
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment