chsh doesn't change shell

5,071

After running that command, you have to log out and back in. chsh changes your log in shell, not your current shell.

To change your current shell (well start a tcsh shell really), you can run /bin/tcsh

Share:
5,071

Related videos on Youtube

vaindil
Author by

vaindil

Updated on September 18, 2022

Comments

  • vaindil
    vaindil over 1 year

    I'm using CentOS 6.5, and the chsh command does not work. I've tried under my account and as root, each time using both the full argument chsh -s /bin/tcsh and using just chsh and following the prompts. Each time it says the shell has been changed, but it doesn't actually change--I continue to use bash.

    What can I do to correct this problem?

    • vaindil
      vaindil over 10 years
      Jeez, that's exactly what I needed. It's always something stupid. Make that an answer and I'll mark it as accepted if you'd like!
  • Panther
    Panther over 10 years
    You are most welcome.
  • shriek
    shriek over 3 years
    To add to this you can run sudo su - $USER that starts a new shell with your current user. Just a note that su is actually used to run a command as a different user and - just starts a brand new shell with that user but you're not passing any command here so it's just starting a new shell.