]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
chsh: (man) fix default behavior description
authorKarel Zak <kzak@redhat.com>
Thu, 27 Feb 2020 12:54:05 +0000 (13:54 +0100)
committerKarel Zak <kzak@redhat.com>
Fri, 15 May 2020 09:49:48 +0000 (11:49 +0200)
Addresses: https://github.com/karelzak/util-linux/issues/967
Signed-off-by: Karel Zak <kzak@redhat.com>
login-utils/chsh.1

index c955b05d89a14336a6c01ef1a577dc4a0b7c88b5..c523c665f2fc26fb7f5e4489aee732ba08787094 100644 (file)
@@ -46,11 +46,13 @@ Display 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
+.sp
+The default behavior for non-root users is to accept only shells
+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.
+file, and issue a warning for root user.  It can also be configured
+at compile-time to only issue a warning for all users.
+
 .SH "EXIT STATUS"
 Returns 0 if operation was successful, 1 if operation failed or command syntax was not valid.
 .SH "SEE ALSO"