'This account is currently not available' even after wipe

Started by Plcstenberg, September 10, 2024, 09:56:27 AM

Previous topic - Next topic
September 10, 2024, 09:56:27 AM Last Edit: September 11, 2024, 05:00:55 PM by Plcstenberg
I recently moved country's and tried booting my router back up and couldn't log in via the GUI.  When I consoled in I got this error message.

All the initial troubleshooting and searching alluded to either the log files completely filling up my drive or a problem with SSH.  I wasn't getting slow performance and it was relatively empty before the move but I went with it and just wiped the router and started over.   I even went one config file back before I set up SSH just in case.   

Well I tried logging in and I still get this error message in the console.  What am I missing?  What else could be happening that I've messed up?

----------------fix-------------------
So as was pointed out below the issue was my accounts were set to use nologon as the shell.  I had disabled root (rookie mistake) so I needed to restart in single-user mode and reenable the root user
To save you some searching:
/sbin/mount -u /
/sbin/zfs mount -n
opnsense-shell password
{type a new password twice}
reboot
I could log in as root via console but for some reason the GUI was still timing out, so in console I added the same IP address to the same interface and rebuilt the self-signed cert for the webUI and bam, login with my standard user worked again.
I added /sch to the authorized shell for good measure.  It looks like with the new update for 24.7 the opnsense-shell is limited to root user only

Hope this helps someone else and thanks again to the guys parsing through the code to help me find what I needed.

September 10, 2024, 10:00:08 AM #1 Last Edit: September 10, 2024, 10:08:02 AM by Patrick M. Hausen
Can you log in to the web UI and examine the account's settings? Possibly the shell is set to "nologin".
Deciso DEC750
People who think they know everything are a great annoyance to those of us who do. (Isaac Asimov)


Quote from: Patrick M. Hausen on September 10, 2024, 10:00:08 AM
Can you log in to the web UI and examine the account's settings? Possibly the shell is set to "nologin".

I tried logging into the GUI. It just hangs or says unavailable

I'm still not super great at reading code.  Is this saying im giving a null login?

You are trying to login with user account that has nologin as shell. And on another note, only admin group can use SSH and shell.

Quote from: doktornotor on September 10, 2024, 05:10:05 PM
You are trying to login with user account that has nologin as shell. And on another note, only admin group can use SSH and shell.

thank you for the help.  I chased this down and i can log in again.
im going to update the main for my fix action