chsh(1) | chsh(1) |
NAME |
|
chsh - change default login shell |
|
SYNOPSIS |
|
chsh |
|
chsh |
|
chsh |
|
chsh |
|
chsh |
|
DESCRIPTION
The chsh command changes the
The DCE repository
If the repository is not speci®ed; i.e., chsh
Run finger after running chsh to make sure the information was processed correctly.
Arguments
shell The absolute path name of a shell. If the ®le /etc/shells exists, the new login shell must be listed in that ®le. Otherwise, you can specify one of the standard shells listed in the getusershell(3C) manual entry. If shell is omitted, it defaults to the POSIX shell, /usr/bin/sh .
Options
The following option is recognized:
Specify the repository to which the operation is to be applied. Supported repositories | |
| include files, nis, nisplus, and dce. |
Security Restrictions
You must have the syslog sensitivity label to execute chsh. You must have the owner kernel authorization to change another user's login shell.
NETWORKING FEATURES
NFS
File /etc/passwd can be implemented as a Network Information Service (NIS) database.
EXAMPLES
To change the login shell for user voltaire to the default:
chsh voltaire
To change the login shell for user descartes to the C shell:
chsh descartes /usr/bin/csh
To change the login shell for user aristotle to the Korn shell in the DCE registry:
chsh
WARNINGS
As many users may try to write the /etc/passwd ®le simultaneously, a passwd locking mechanism was deviced. If this locking fails after subsequent retrying, chsh terminates.
AUTHOR
chsh was developed by HP and the University of California, Berkeley.
c
− 1 − | Section 1−89 |