If I create a user in a Linux system with an empty password, does that expose any remote vulnerabilities, or is it only a problem if someone gains physical access to the machine?
2 Answers
If I create a user in a Linux system with an empty password, does that expose any remote vulnerabilities, or is it only a problem if someone gains physical access to the machine?
It does not expose a remote vulnerability, it is considered a misconfiguration which depends on:
Your SSH configuration. Per default
PermitEmptyPasswords
is set tono
in/etc/ssh/sshd_config
.How the user itself is configured. If the user is allowed shell access or not which can be seen in
/etc/passwd
.
Assuming that both 1 and 2 apply, you need console (physical) access to your machine in order for this user to be able to login.
There should only be one reason for not setting a user's password and that's when public key authentication is configured. To avoid any confusion, there is a difference between user accounts (uid >= 1000) and service accounts (uid < 1000).