OPNsense
  • Home
  • Help
  • Search
  • Login
  • Register

  • OPNsense Forum »
  • Profile of Plcstenberg »
  • Show Posts »
  • Messages
  • Profile Info
    • Summary
    • Show Stats
    • Show Posts...
      • Messages
      • Topics
      • Attachments

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.

  • Messages
  • Topics
  • Attachments

Messages - Plcstenberg

Pages: [1]
1
General Discussion / Re: 'This account is currently not available' even after wipe
« on: September 11, 2024, 04:51:00 pm »
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
« on: 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
« 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?

4
General Discussion / Re: 'This account is currently not available' even after wipe
« on: September 10, 2024, 04:51:33 pm »
I'm still not super great at reading code.  Is this saying im giving a null login?

5
General Discussion / Re: 'This account is currently not available' even after wipe
« on: September 10, 2024, 04:47:57 pm »
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
General Discussion / 'This account is currently not available' even after wipe
« on: September 10, 2024, 09:56:27 am »
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.

Pages: [1]
OPNsense is an OSS project © Deciso B.V. 2015 - 2024 All rights reserved
  • SMF 2.0.19 | SMF © 2021, Simple Machines
    Privacy Policy
    | XHTML | RSS | WAP2