Console Login after disabling the root user

Started by sc0ttjm, July 24, 2021, 11:53:03 PM

Previous topic - Next topic
Hi,
I think this should be a simple one but I'm struggling to find the answer myself.

I created a new admin user some time ago and disabled the root user as per the good practice guides I read.
I've just had to login to the console for the first time since then and could not.
I had to re-enable the root user in the web interface and then I could login to teh console using that account.
I then compared the 2 accounts and the only difference I could see was the "Login Shell" value for root was "/usr/local/sbin/opnsense-shell" and my new admin user was set to "/sbin/nolongin", but the only other options in the drop down are "/bin/csh", "/bin/sh" and "/bin/tcsh".
I tried "/bin/sh" which allowed me to login but I couldn't see the usual menu.
If I type SU and put in my password, I get "Sorry"

To clarify this user is a member of teh admins group and the Systems > Settings > Administration Secure Shell Login Groups are set to Wheel, Admins.


July 25, 2021, 12:20:11 AM #1 Last Edit: July 25, 2021, 01:02:42 AM by Greelan
Not seeing the console menu is normal. After logging in, "sudo su -" to switch to root. The menu then shows

Quote from: Greelan on July 25, 2021, 12:20:11 AM
Not seeing the console menu is normal. After logging in, "sudo su -" to switch to root. The menu then shows

Perfect, Thanks!