2

I am unable to change my default shell in osx high sierra.

sudo chsh -s /bin/zsh username 
chsh: Operation was denied because the current credentials do not have the appropriate privileges.  Operation was denied because the current credentials do not have the appropriate privileges.

I looked at this question and there does not seem to be an updated answer:

digitalbart
  • 123
  • 1
  • 4

1 Answers1

1

I am unable to change my default shell in osx high sierra.

I would like to add 2 important things here. These are applicable to MacOS Sierra 10.12.5 (16F73) and probably some other recent and upcoming versions of MacOS.

  1. chsh is not enough to change the default shell. Make sure you press Command+, while your terminal is open and change the "Shells open with" option to "Default login shell."

  2. In case of bash, make sure that you execute echo $BASH_VERSION to confirm you are running the intended version of bash. bash --version does not give you correct information.

Source How to set my default shell on Mac?, answer by Tushar Vazirani

DavidPostill
  • 153,128
  • 77
  • 353
  • 394
  • Thanks, I realized I am using iterm not the default terminal client. I ended up setting this here: https://stackoverflow.com/questions/1276703/how-to-make-zsh-run-as-a-login-shell-on-mac-os-x-in-iterm In iTerm -> Preferences -> Profiles Tab -> General section set Command to: /bin/zsh --login and works great. Thanks for the quick response. – digitalbart Apr 11 '18 at 15:13