Museum

Home

Lab Overview

Retrotechnology Articles

⇒ Online Manual

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

chfn(1)

passwd(1)

yppasswd(1yp)

passwd(5yp)

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

See Also

chfn(1), passwd(1), yppasswd(1yp), passwd(5yp)

Typewritten Software • bear@typewritten.org • Edmonds, WA 98026