1CHSH(1)                          User Commands                         CHSH(1)
2
3
4

NAME

6       chsh - change your login shell
7

SYNOPSIS

9       chsh [-s shell] [-l] [-h] [-V] [username]
10

DESCRIPTION

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

OPTIONS

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. The short options -h have been used
28           since version 2.30; old versions use deprecated -u.
29
30       -V, --version
31           Print version and exit. The short options -V have been used since
32           version 2.39; old versions use deprecated -v.
33
34       -h, --help
35           Display help text and exit.
36
37       -V, --version
38           Print version and exit.
39

VALID SHELLS

41       chsh will accept the full pathname of any executable file on the
42       system.
43
44       The default behavior for non-root users is to accept only shells listed
45       in the /etc/shells file, and issue a warning for root user. It can also
46       be configured at compile-time to only issue a warning for all users.
47

EXIT STATUS

49       Returns 0 if operation was successful, 1 if operation failed or command
50       syntax was not valid.
51

AUTHORS

53       Salvatore Valente <svalente@mit.edu>
54

SEE ALSO

56       login(1), login.defs(5), passwd(5), shells(5)
57

REPORTING BUGS

59       For bug reports, use the issue tracker at
60       https://github.com/util-linux/util-linux/issues.
61

AVAILABILITY

63       The chsh command is part of the util-linux package which can be
64       downloaded from Linux Kernel Archive
65       <https://www.kernel.org/pub/linux/utils/util-linux/>.
66
67
68
69util-linux 2.39.2                 2023-06-14                           CHSH(1)
Impressum