chsh(1) General Commands Manual chsh(1)
Name
chsh - change login shell
Syntax
chsh [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 /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 will not modify it.
Files
/etc/shells
See Also
chfn(1), passwd(1), yppasswd(1yp), passwd(5yp)
chsh(1)