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 - FreeBSD4Me

#1
I was reading the /usr/local/sbin/opnsense-shell script which gave me a clue about what caused this problem. The section reads "...assumes a full root shell and has no way to override it because the target user most likely does not have a shell set." The root user had a login shell of csh, so I set the login shell back to the opnsense-shell. I must have caused this problem accidentally. Problem solved.
#2
General Discussion / Stuck as root user after each boot
November 02, 2020, 12:42:51 AM
Hello, I'm. new to the forum. Here is my problem: I switched to root (sudo su -) from a shell over serial to create a custom loader.local.conf. I saved the file and then issued the reboot command without exiting from the menu option 0. The firewall now automatically boots into a shell with the root user already logged in without entering a password. I manually run "/usr/local/sbin/opnsense-shell" to start the menu as a workaround. How do I stop booting into a shell as root and get back to automatically booting the menu? Thank you.