3 .\" Author: [FIXME: author] [see http://docbook.sf.net/el/author]
4 .\" Generator: DocBook XSL Stylesheets v1.75.2 <http://docbook.sf.net/>
6 .\" Manual: User Commands
7 .\" Source: User Commands
10 .TH "CHSH" "1" "02/16/2011" "User Commands" "User Commands"
11 .\" -----------------------------------------------------------------
12 .\" * Define some portability stuff
13 .\" -----------------------------------------------------------------
14 .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
15 .\" http://bugs.debian.org/507673
16 .\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html
17 .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
20 .\" -----------------------------------------------------------------
21 .\" * set default formatting
22 .\" -----------------------------------------------------------------
23 .\" disable hyphenation
25 .\" disable justification (adjust text to left margin only)
27 .\" -----------------------------------------------------------------
28 .\" * MAIN CONTENT STARTS HERE *
29 .\" -----------------------------------------------------------------
31 chsh \- change login shell
34 \fBchsh\fR [\fIoptions\fR] [\fILOGIN\fR]
39 command changes the user login shell\&. This determines the name of the user\*(Aqs 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\&.
42 The options which apply to the
46 \fB\-h\fR, \fB\-\-help\fR
48 Display help message and exit\&.
51 \fB\-s\fR, \fB\-\-shell\fR \fISHELL\fR
53 The name of the user\*(Aqs new login shell\&. Setting this field to blank causes the system to select the default login shell\&.
58 option is not selected,
60 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
65 The only restriction placed on the login shell is that the command name must be listed in
66 /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
70 is discouraged since accidentally changing to a restricted shell would prevent the user from ever changing her login shell back to its original value\&.
73 The following configuration variables in
75 change the behavior of this tool:
77 \fBCHSH_AUTH\fR (boolean)
82 program will require authentication before making any changes, unless run by the superuser\&.
85 \fBLOGIN_STRING\fR (string)
87 The string used for prompting a password\&. The default is to use "Password: ", or a translation of that string\&. If you set this variable, the prompt will no be translated\&.
89 If the string contains
90 \fI%s\fR, this will be replaced by the user\*(Aqs name\&.
96 User account information\&.
101 List of valid login shells\&.
106 Shadow password suite configuration\&.