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

NAME

6       chsh - change your login shell
7

SYNOPSIS

9       chsh [-s shell] [-l] [-u] [-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 is used to change local entries only. Use  ypchsh,  lchsh  or  any
16       other implementation for non-local entries.
17

OPTIONS

19       -s, --shell shell
20              Specify your login shell.
21
22       -l, --list-shells
23              Print the list of shells listed in /etc/shells and exit.
24
25       -u, --help
26              Print a usage message and exit.
27
28       -v, --version
29              Print version information and exit.
30

VALID SHELLS

32       chsh  will  accept the full pathname of any executable file on the sys‐
33       tem.  However, it will issue a warning if the shell is  not  listed  in
34       the  /etc/shells  file.   On  the other hand, it can also be configured
35       such that it will only accept shells listed in this  file,  unless  you
36       are root.
37

EXIT STATUS

39       Returns 0 if operation was successful, 1 if operation failed or command
40       syntax was not valid.
41

SEE ALSO

43       login(1), passwd(5), shells(5)
44

AUTHOR

46       Salvatore Valente <svalente@mit.edu>
47

AVAILABILITY

49       The chsh command is part of the util-linux  package  and  is  available
50       from ftp://ftp.kernel.org/pub/linux/utils/util-linux/.
51
52
53
54util-linux                         July 2009                           CHSH(1)
Impressum