Hi All, this document shows you how to switch default bash shell to zsh for an active directory user.
By default, all the Linux users are created with bash as their default shell. You can change your shell using below command,
or you can change in /etc/passwd file also.
It’s a bit complicated when you use LDAP authentication for your Linux laptop. Why it is complicated means user details are not stored in /etc/passwd file.
In order to change the shell for an LDAP authenticated user from bash to zsh, I found below is the dirty fix. Add the following statement in the .bashrc file.
After this, any new terminal sessions will be opened with zsh as their default shell.
© 2020, Techrunnr. All rights reserved.