How to change shell without logging in?

I am posting on a separate computer - no way to login to the affected one.

So, I recently changed my shell (almost certainly the problem). It was having some issues, but it seemed to be working fine, until I just rebooted my computer. Now it tells me that

Xsession: Login for <USER> is disabled.

I checked the post concerning this issue, and it reinforced what I had thought - that the new shell was likely the problem. The issue is that I need to change it now, but I can’t seem to do that from the GRUB shell. When I boot through recovery mode, I make it all the way to the GUI login (normal boot just stopped with no GUI except the Xsession error), but when I hit enter after typing in my password, the error pops up again. How could I change my shell before I can login?

Though I would like to avoid it, I can reinstall if necessary - I have all of my important stuff on a NAS.

Please do not withhold details. How do you think people can even think about helping without knowing them?

Thus changing from what shell to what shell doing that how?

Yes, I am so sorry about that.

I am trying to switch from a shell called nu (nushell.sh) back to the default bash (/bin/bash)

Hi and welcome to the Forum :slight_smile:
If you login as root user, then cd to which ever user directory and file you changed and edit with vi to change the shell back.

Or describe what you did to configure this shell.

I would say, from the GUI login page, you do Ctrl-Alt-F1. You then land at the console with a login prompt. Login as root and then do

chsh -s /bin/bash <username>

where you of course change into the name of the user involved.

Logout

exit

and do Ctrl-Alt-F7 to get to the GUI login page. Try.

BTW this advice is NOT based on how you changed from bash to nushell, because, notwithstanding I asked for that, you did not explain.

Thanks so much! This is indeed working. I am very sorry about not giving enough information - I am very new to the forums. I will be sure to double check that I have everything included in my post next time.

Nice it worked.

BTW this forums is not different from others in that there are no mind readers. I assume that wherever you go with a technical (and probably many other) questions, you should give exact and detailed information and never assume that others know “out of the blue” what you did and saw. :slight_smile: