summaryrefslogtreecommitdiffstats
path: root/login-utils/chsh.1
diff options
context:
space:
mode:
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),