Results 1 to 7 of 7

Thread: How to change shell without logging in?

  1. #1

    Unhappy 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
    Code:
    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.

  2. #2
    Join Date
    Jun 2008
    Location
    Netherlands
    Posts
    29,094

    Default Re: How to change shell without logging in?

    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?
    Henk van Velden

  3. #3

    Default Re: How to change shell without logging in?

    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)

  4. #4
    Join Date
    Jun 2008
    Location
    Podunk
    Posts
    31,693
    Blog Entries
    15

    Default Re: How to change shell without logging in?

    Quote Originally Posted by gaet View Post
    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
    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.
    Cheers Malcolm °¿° SUSE Knowledge Partner (Linux Counter #276890)
    SUSE SLE, openSUSE Leap/Tumbleweed (x86_64) | GNOME DE
    If you find this post helpful and are logged into the web interface,
    please show your appreciation and click on the star below... Thanks!

  5. #5
    Join Date
    Jun 2008
    Location
    Netherlands
    Posts
    29,094

    Default Re: How to change shell without logging in?

    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
    Code:
    chsh -s /bin/bash <username>
    where you of course change <username> into the name of the user involved.

    Logout
    Code:
    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.
    Last edited by hcvv; 17-Mar-2021 at 10:23.
    Henk van Velden

  6. #6

    Default Re: How to change shell without logging in?

    Quote Originally Posted by hcvv View Post
    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
    Code:
    chsh -s /bin/bash <username>
    where you of course change <username> into the name of the user involved.

    Logout
    Code:
    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.

  7. #7
    Join Date
    Jun 2008
    Location
    Netherlands
    Posts
    29,094

    Default Re: How to change shell without logging in?

    Quote Originally Posted by gaet View Post
    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.
    Henk van Velden

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •