Find the answer to your Linux question:
Results 1 to 6 of 6
Hello all, I am running openSUSE 12.1. I'm trying to change my default shell from bash to zsh. I have already done so on two other computers (using openSUSE 12.2 ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    May 2013
    Posts
    3

    Linux starts the wrong shell


    Hello all,

    I am running openSUSE 12.1. I'm trying to change my default shell from bash to zsh. I have already done so on two other computers (using openSUSE 12.2 and OS X 10.8), but this one is giving me trouble.

    To change the shell I ran the command 'usermod -s /bin/zsh'.

    When I run 'finger christopher' it tells me that my default shell is zsh. Also, 'cat /etc/passwd' confirms that my shell should be zsh, yet when I open a terminal it starts bash every time (which I have confirmed with 'echo $SHELL' and 'ps -p $$').

    How to I force the system to change my shell?

  2. #2
    Linux Enthusiast
    Join Date
    Jan 2005
    Location
    Saint Paul, MN
    Posts
    668
    Have you used the "chsh" command from the user that you wish to change the login shell.

  3. #3
    Penguin of trust elija's Avatar
    Join Date
    Jul 2004
    Location
    Either at home or at work or down the pub
    Posts
    3,639
    Have you logged out and back in again?
    "I used to be with it, then they changed what it was.
    Now what was it isn't it, and what is it is weird and scary to me.
    It'll happen to you too."

    Grandpa Simpson



    The Fifth Continent

  4. $spacer_open
    $spacer_close
  5. #4
    Just Joined!
    Join Date
    May 2013
    Posts
    3
    The chsh command seems to have no more effect than the usermod command that I ran. But it at least tells me that it did something.

    And yes, I have logged out and back in. I even rebooted. I also checked that gnome-terminal doesn't have some kind of a setting in place to open a specific shell or command. It's the same terminal I use elsewhere, so I figured it was a long shot, but I still checked.

  6. #5
    Penguin of trust elija's Avatar
    Join Date
    Jul 2004
    Location
    Either at home or at work or down the pub
    Posts
    3,639
    Does
    Code:
    /usr/sbin/update-alternatives --get-selections
    show anything relevant? It doesn't in openSUSE 12.3 running Xfce.
    "I used to be with it, then they changed what it was.
    Now what was it isn't it, and what is it is weird and scary to me.
    It'll happen to you too."

    Grandpa Simpson



    The Fifth Continent

  7. #6
    Just Joined!
    Join Date
    May 2013
    Posts
    3
    Well... The problem seems to have solved itself today... I have been fighting with this computer for days, and this morning it was still broken. When I can home from work zsh fired right up. I don't know why, or even how it was fixed, but I guess I'm going to mark this as solved anyway.

    Thanks for your suggestions everyone!

Posting Permissions

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