chsh always asking a password , and get `PAM: Authentication failure`
Thanks to this question on Server Fault, I worked around this by:
Changing /etc/pam.d/chsh:
from:
auth required pam_shells.so
to
auth sufficient pam_shells.so
Then it doesn't ask for a password anymore. But I think it better to restore chsh settings after switching the shell.
Use
which zsh
to find yourzsh
location.$ which zsh /usr/bin/zsh
Add
/usr/bin/zsh
to/etc/shells
Check in
/etc/passwd
that your config is/usr/bin/zsh
Run
chsh -s /usr/bin/zsh