chsh(1)chsh(1)Namechsh - change login shell
Syntaxchsh [loginname]
Description
The command is a command similar to 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 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 to be able to
change the shell.
FilesSee Alsochfn(1), passwd(1), yppasswd(1yp), passwd(5yp)chsh(1)