I am trying to change my default shell to zsh. I have the entry placed correctly in /etc/shells file.
Each attempt I have made with this command has ended with the same error message:
chsh -s $(which zsh)
Password: ### after entering the correct password
chsh: PAM: Authentication failure
sudo chsh -s $(which zsh) ## yields the same result
I have used sudo for other commands to be sure it was not a password failure, and every other command has worked but nothing works with "chsh".
Totally stumped.
Additional information:
I have appended a line per Oli's suggested code to the /etc/shells file.
echo $SHELL
/bin/bash
sudo chsh -s /usr/local/bin/zsh
Password:
chsh: PAM: Authentication failure
chsh -s /usr/local/bin/zsh
You may not change the shell for 'username'
Still cannot change shell.