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.