Users without password based authentication cannot log in

Need support for GhostBSD. Ask here if your question does not fit elsewhere.
Post Reply
User avatar
GavOnyx
Posts: 2
Joined: Fri Apr 21, 2023 10:54 am
Contact:

Users without password based authentication cannot log in

Post by GavOnyx »

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.
User avatar
ericbsd
Developer
Posts: 2057
Joined: Mon Nov 19, 2012 7:54 pm

Re: Users without password based authentication cannot log in

Post by ericbsd »

Setting the password authentication to no will not let you log in.

Also, adding a user with an empty password is not secure, but it is up to your choice.
LibreQuest
Posts: 21
Joined: Thu May 18, 2023 6:07 am

Re: Users without password based authentication cannot log in

Post by LibreQuest »

I had the same issue. I don't like having a user password for some systems. But it failed on FreeBSD/GhostBSD.
Post Reply