1CHSH(1) User Commands CHSH(1)
2
3
4
6 chsh - change your login shell
7
9 chsh [-s shell] [-l] [-h] [-v] [username]
10
12 chsh is used to change your login shell. If a shell is not given on the
13 command line, chsh prompts for one.
14
15 chsh supports non-local entries (kerberos, LDAP, etc.) if linked with
16 libuser, otherwise use ypchsh(1), lchsh(1) or any other implementation
17 for non-local entries.
18
20 -s, --shell shell
21 Specify your login shell.
22
23 -l, --list-shells
24 Print the list of shells listed in /etc/shells and exit.
25
26 -h, --help
27 Display help text and exit.
28
29 -V, --version
30 Print version and exit.
31
33 chsh will accept the full pathname of any executable file on the
34 system.
35
36 The default behavior for non-root users is to accept only shells listed
37 in the /etc/shells file, and issue a warning for root user. It can also
38 be configured at compile-time to only issue a warning for all users.
39
41 Returns 0 if operation was successful, 1 if operation failed or command
42 syntax was not valid.
43
45 Salvatore Valente <svalente@mit.edu>
46
48 login(1), login.defs(5), passwd(5), shells(5)
49
51 For bug reports, use the issue tracker at
52 https://github.com/util-linux/util-linux/issues.
53
55 The chsh command is part of the util-linux package which can be
56 downloaded from Linux Kernel Archive
57 <https://www.kernel.org/pub/linux/utils/util-linux/>.
58
59
60
61util-linux 2.38 2022-02-17 CHSH(1)