Change the user's login shell. - chsh

Change the user’s login shell. More information: chsh - manned.org.

  • Change the current user’s login shell interactively:

chsh

  • Change the current user’s login shell:

chsh --shell {{path/to/shell}}

  • Change the login shell for a given user:

chsh --shell {{path/to/shell}} {{username}}

  • List available shells:

chsh --list-shells