chsh(1)
Name
chsh − change login shell
Syntax
chsh [loginname]
Description
The chsh command is a command similar to passwd, except that it is used to change the login shell field of the password file rather than the password entry. The program will prompt you for a new shell. The shell name supplied must match one of the entries in /etc/shells. If no name is given the shell will be unchanged and the diagnostic "Login shell unchanged" will be printed.
An example use of this command is:
% chsh
Changing login shell for bill
Shell [/bin/csh]: sh
Restrictions
Both the new shell and the old shell must be found in /etc/shells to be able to change the shell.
If the passwd entry is distributed from another host chsh will not modify it.
Files
/etc/shells