You can make a difference in the Apple Support Community!

When you sign up with your Apple Account, you can provide valuable feedback to other community members by upvoting helpful replies and User Tips.

chsh -s /bin/zsh won't accept my password

Trying to switch from bash to zsh using the command 'chsh -s /bin/zsh' but when I type my password terminal responds with 'chsh: no changes made'. I'm typing the correct password because when I su into my username the password works.

MacBook Pro 16″, macOS 15.1

Posted on Nov 11, 2024 6:29 AM

Reply
1 reply

Nov 11, 2024 6:49 AM in response to Cyber Nuke

Try:

sudo chsh -s /bin/zsh


Your entered password will not echo to the screen. If you have already successfully changed the shell, then yes, it would tell you no changes were made.


Now, you will need a new Zsh shell dot file to establish your PATH and Terminal prompt as the Zsh shell does not read the old Bash dot files. If you do not have a /Users/username/.zshrc file, then copy/paste the following into the launched Terminal followed by a return:

<<"EOF" > ~/.zshrc
export PATH=".:/usr/local/bin:${PATH}"
PS1="%m: %~ %% "
EOF


Once you have done that, then do the following at the Terminal prompt:

source ~/.zshrc


and now your PATH and Zsh shell prompt are set in the current Terminal session and for any subsequent launch of the Terminal.


chsh -s /bin/zsh won't accept my password

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.