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
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

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.
28
29       -v, --version
30              Display version information and exit.
31

VALID SHELLS

33       chsh will accept the full pathname of any executable file on  the  sys‐
34       tem.
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
38       also  be  configured  at  compile-time  to only issue a warning for all
39       users.
40
41

EXIT STATUS

43       Returns 0 if operation was successful, 1 if operation failed or command
44       syntax was not valid.
45

AUTHORS

47       Salvatore Valente <svalente@mit.edu>
48

SEE ALSO

50       login(1), login.defs(5), passwd(5), shells(5)
51

AVAILABILITY

53       The  chsh  command  is  part of the util-linux package and is available
54       from https://www.kernel.org/pub/linux/utils/util-linux/.
55
56
57
58util-linux                         July 2014                           CHSH(1)
Impressum