Menu

Show posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Show posts Menu

Messages - Plcstenberg

#1
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
#2
General Discussion / Re: [SOLVED] Cannot login via SSH
September 11, 2024, 04:49:25 PM
Quote from: Patrick M. Hausen on September 11, 2024, 02:20:49 PM
Quote from: Plcstenberg on September 11, 2024, 01:31:21 PM
I've tried using nano vim and usermod to add a shell back to my account via root.   How did you add a shell to yours?
Use the UI.

thank you.  this helped fixed my issue
#3
General Discussion / Re: [SOLVED] Cannot login via SSH
September 11, 2024, 01:31:21 PM
I've tried using nano vim and usermod to add a shell back to my account via root.   How did you add a shell to yours?
#4
I'm still not super great at reading code.  Is this saying im giving a null login?
#5
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
#6
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.