Penguin
Annotated edit history of chsh(1) version 2, including all changes. View license author blame.
Rev Author # Line
1 perry 1 CHSH
2 !!!CHSH
3 NAME
4 SYNOPSIS
5 DESCRIPTION
6 FILES
7 SEE ALSO
8 AUTHOR
9 ----
10 !!NAME
11
12
13 chsh - change login shell
14 !!SYNOPSIS
15
16
17 __chsh__
18
19
20 [[__-s__ ''login_shell''] [[''user'']
21 !!DESCRIPTION
22
23
24 __chsh__ changes the user login shell. This determines
25 the name of the user's initial login command. A normal user
26 may only change the login shell for their own account, the
27 super user may change the login shell for any
28 account.
29
30
31 The only restrictions placed on the login shell is that the
32 command name must be listed in ''/etc/shells'', unless
33 the invoker is the super-user, and then any value may be
34 added. An account with a restricted login shell may not
35 change their login shell. For this reason, placing
36 __/bin/rsh__ in ''/etc/shells'' is discouraged since
37 accidentally changing to a restricted shell would prevent
38 the user from every changing their login shell back to its
39 original value.
40
41
42 If the __-s__ option is not selected, __chsh__
43 operates in an interactive fashion, prompting the user with
44 the current login shell. Enter the new value to change the
45 field, or leave the line blank to use the current value. The
46 current value is displayed between a pair of __[[ ]__
47 marks.
48
49
50 The file, __/etc/login.defs__, defines some configuration
51 options that affects how chsh operates, especially for
52 non-root users.
53 !!FILES
54
55
56 /etc/passwd - user account information
57 /etc/shells - list of valid login shells
58 /etc/login.defs - config options for chsh
59 !!SEE ALSO
60
61
62 chfn(1), passwd(5),
2 perry 63 login.defs(5)
1 perry 64 !!AUTHOR
65
66
67 Julianne Frances Haugh (jfh@austin.ibm.com)
68 ----
This page is a man page (or other imported legacy content). We are unable to automatically determine the license status of this page.