I Can't Change My Default Interactive Shell from Bash to Zsh

Basically I want to change from bash to zsh so I ran the command

chsh -s /bin/zsh

It then asks me for my password to change the shell but when I enter it it says

chsh: no changes made

How do I proceed from here?

2

1 Answer

Since changing your shell requires updating /etc/passwd, it must be done by root. Use

sudo chsh -s /bin/zsh $USER

Also make sure /bin/zsh is listed in /etc/shells.

Just in case, login (with the old, working shell) in a text terminal (Ctrl-Alt-F2) while you chsh and logout/login via the GUI, in case you need to fix something.

3

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

James H. Sterling

James H. Sterling

Environmental Science & Climate Journalist

James Sterling reports on renewable energy developments, climate policy, ecological conservation, and green tech innovations around the globe.

Share this article
Twitter Facebook Pinterest