chsh(1) chsh(1)
NAME
chsh - change default login shell
SYNOPSIS
/usr/ucb/chsh name [shell]
DESCRIPTION
chsh is a command similar to passwd(1), except that it is used to
change the login shell field of the password file rather than the
password entry.
If no shell is specified, or the standard login shell /sbin/sh is
specified, no shell will be entered in /etc/passwd. The standard shell
will be used the next time the user logs in.
You can only specify
- /bin/csh
- /bin/ksh
- /bin/sh
- /usr/bin/csh
- /usr/bin/ksh
- /usr/bin/sh
as the shell, unless you are the super-user.
An example use of this command would be
chsh bill /bin/csh
If a field in the /etc/passwd file is corrupt, processing will be ter-
minated without copying the rest of the passwd file. If this happens,
a message is printed and the system administrator should be contacted.
The administrator can look at the temporary file /etc/ptmp to see what
the last good record was, fix the bad record in /etc/opasswd, and copy
it to /etc/passwd.
SEE ALSO
passwd(1), passmgmt(1M), passwd(4).
Page 1 Reliant UNIX 5.44 Printed 11/98