NAME
chsh - change login shell
SYNOPSIS
chsh [options] [LOGIN]
DESCRIPTION
The chsh command changes the user login shell. This determines the name of the user's initial login command. A normal user may only change the login shell for her own account; the superuser may change the login shell for any account.
OPTIONS
The options which apply to the chsh command are: -h, --help Display help message and exit. -R, --root CHROOT_DIR Apply changes in the CHROOT_DIR directory and use the configuration files from the CHROOT_DIR directory. -s, --shell SHELL The name of the user's new login shell. Setting this field to blank causes the system to select the default login shell. If the -s option is not selected, chsh operates in an interactive fashion, prompting the user with the current login shell. Enter the new value to change the shell, or leave the line blank to use the current one. The current shell is displayed between a pair of [ ] marks.
NOTE
The only restriction placed on the login shell is that the command name must be listed in /etc/shells, unless the invoker is the superuser, and then any value may be added. An account with a restricted login shell may not change her login shell. For this reason, placing /bin/rsh in /etc/shells is discouraged since accidentally changing to a restricted shell would prevent the user from ever changing her login shell back to its original value.
FILES
/etc/passwd User account information. /etc/shells List of valid login shells. /etc/login.defs Shadow password suite configuration.
SEE ALSO
chfn(1), login.defs(5), passwd(5).
More Linux Commands
manpages/newaliases.1.html
newaliases(1) - Postfix to Sendmail compatibility interface
The Postfix sendmail(1) command implements the Postfix to Sendmail compatibility interface. For the sake of compatibility with existing applications, some Sendm
manpages/dup.2.html
dup(2) - duplicate a file descriptor - Linux manual page....
These system calls create a copy of the file descriptor oldfd. dup() uses the lowest-numbered unused descriptor for the new descriptor. dup2() makes newfd be th
manpages/start_color_sp.3ncurses.html
start_color_sp(3ncurses) - curses screen-pointer extension
This implementation can be configured to provide a set of functions which improve the ability to manage multiple screens. This feature can be added to any of th
manpages/change_hat.2.html
change_hat(2) - change to or from a "hat" within a AppArmor
An AppArmor profile applies to an executable program; if a portion of the program needs different access permissions than other portions, the program can change
manpages/getsubopt.3.html
getsubopt(3) - parse suboption arguments from a string......
getsubopt() parses the list of comma-separated suboptions provided in optionp. (Such a suboption list is typically produced when getopt(3) is used to parse a co
manpages/loconvert.html
loconvert
loconvert
manpages/XtRegisterDrawable.3.html
XtRegisterDrawable(3) - register a drawable with the Intrins
XtRegisterDrawable associates the specified drawable with the specified widget so that future calls to XtWindowToWidget with the drawable will return the widget
manpages/clnt_destroy.3.html
clnt_destroy(3) - library routines for remote procedure call
These routines allow C programs to make procedure calls on other machines across the network. First, the client calls a procedure to send a data packet to the s
manpages/zic.8.html
zic(8) - timezone compiler (Administration - Linux man page)
Zic reads text from the file(s) named on the command line and creates the time conversion information files specified in this input. If a filename is -, the sta
manpages/snmpd.conf.5.html
snmpd.conf(5) - configuration file for the Net-SNMP SNMP age
The Net-SNMP agent uses one or more configuration files to control its operation and the management information provided. These files (snmpd.conf and snmpd.loca
manpages/TIFFPrintDirectory.3tiff.html
TIFFPrintDirectory(3tiff) - print a description of a TIFF di
TIFFPrintDirectory prints a description of the current directory in the specified TIFF file to the standard I/O output stream fd. The flags parameter is used to
manpages/gnutls_openpgp_privkey_get_subkey_expiration_time.3.html
gnutls_openpgp_privkey_get_subkey_expiration_time.3.........
gnutls_openpgp_privkey_get_subkey_expiration_time.3 - Get subkey expiration time. A value of 0 means that the key doesnt expire at all. RETURNS the time when th
