Users without password based authentication cannot log in
Posted: Sat Apr 22, 2023 1:55 am
After installing GhostBSD I added a user using the adduser (8) command. For this user I set the Use password-based authentication? option to "no". Everything else about this user is normal.
When I rebooted and attempted to access this user (with the usual graphical login screen), I could not. A blank password is rejected as well as all other passwords. Even after using ctrl+alt+f2 to access the Command Line Interface, it acted as if it had a password and would not let me in.
After poking around I found a solution. Using pw moduser $USER -w none fixed it, allowing me to log in without a password.
Is this an issue with GhostBSD or is this a feature of adduser that I was unfamiliar with? I had assumed the password would be blank rather than locked out when setting password authentication to no.
When I rebooted and attempted to access this user (with the usual graphical login screen), I could not. A blank password is rejected as well as all other passwords. Even after using ctrl+alt+f2 to access the Command Line Interface, it acted as if it had a password and would not let me in.
After poking around I found a solution. Using pw moduser $USER -w none fixed it, allowing me to log in without a password.
Is this an issue with GhostBSD or is this a feature of adduser that I was unfamiliar with? I had assumed the password would be blank rather than locked out when setting password authentication to no.