summaryrefslogtreecommitdiffstats
path: root/login-utils/chsh.1
diff options
context:
space:
mode:
authorKarel Zak2012-12-12 10:48:01 +0100
committerKarel Zak2012-12-12 10:48:01 +0100
commit36f9133dd2ee442b16d257c0d5d4027a7b72fea0 (patch)
treee1217a1904d1401d33f7283d75fc660a828dd821 /login-utils/chsh.1
parentchfn: always use return rather than exit() in main (diff)
downloadkernel-qcow2-util-linux-36f9133dd2ee442b16d257c0d5d4027a7b72fea0.tar.gz
kernel-qcow2-util-linux-36f9133dd2ee442b16d257c0d5d4027a7b72fea0.tar.xz
kernel-qcow2-util-linux-36f9133dd2ee442b16d257c0d5d4027a7b72fea0.zip
chsh: use return rather than exit in main, clean up man page
Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'login-utils/chsh.1')
-rw-r--r--login-utils/chsh.118
1 files changed, 10 insertions, 8 deletions
diff --git a/login-utils/chsh.1 b/login-utils/chsh.1
index 393ccb70c..d597adc38 100644
--- a/login-utils/chsh.1
+++ b/login-utils/chsh.1
@@ -31,14 +31,6 @@ prompts for one.
.B chsh
is used to change local entries only. Use ypchsh, lchsh or any other
implementation for non-local entries.
-.SS VALID SHELLS
-.B chsh
-will accept the full pathname of any executable file on the system.
-However, it will issue a warning if the shell is not listed in the
-.I /etc/shells
-file.
-On the other hand, it can also be configured such that it will
-only accept shells listed in this file, unless you are root.
.SH OPTIONS
.TP
.BI "\-s, \-\-shell " shell
@@ -54,6 +46,16 @@ Print a usage message and exit.
.TP
.B "-v, \-\-version"
Print version information and exit.
+.SH "VALID SHELLS"
+.B chsh
+will accept the full pathname of any executable file on the system.
+However, it will issue a warning if the shell is not listed in the
+.I /etc/shells
+file.
+On the other hand, it can also be configured such that it will
+only accept shells listed in this file, unless you are root.
+.SH "EXIT STATUS"
+Returns 0 if operation was successful, 1 if operation failed or command syntax was not valid.
.SH "SEE ALSO"
.BR login (1),
.BR passwd (5),