I need to add new users who are only supposed to be usable through SSH. When adding a user, they get added to the shadow file with an exclamation mark (
!) instead of an asterisk (
*), so they are "disabled" and sshd does not allow them to be used.
Is there a way to add a user without a password that is enabled by default?
I have tried using busybox' adduser command and it adds them with a
!. Similarly, Gentoo's default useradd command will add them with a
adduser <username> --disabled-password- just make sure to also use the
--shelloptions if they need a home directory and login shell as
adduserdoesn't create them by default.
!from the shadow file? Can the user log in without a password?
*though, so it seems to be working now.