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
13 the command line, chsh prompts for one.
14
15 chsh supports non-local entries (kerberos, LDAP, etc.) if linked with
16 libuser, otherwise use ypchsh, lchsh or any other implementation for
17 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 Display version information and exit.
31
33 chsh will accept the full pathname of any executable file on the sys‐
34 tem. However, it will issue a warning if the shell is not listed in
35 the /etc/shells file. On the other hand, it can also be configured
36 such that it will only accept shells listed in this file, unless you
37 are root.
38
40 Returns 0 if operation was successful, 1 if operation failed or command
41 syntax was not valid.
42
44 login(1), login.defs(5), passwd(5), shells(5)
45
47 Salvatore Valente <svalente@mit.edu>
48
50 The chsh command is part of the util-linux package and is available
51 from https://www.kernel.org/pub/linux/utils/util-linux/.
52
53
54
55util-linux July 2014 CHSH(1)