From: Karel Zak Date: Thu, 27 Feb 2020 12:54:05 +0000 (+0100) Subject: chsh: (man) fix default behavior description X-Git-Tag: v2.35.2~44 X-Git-Url: http://git.ipfire.org/gitweb/gitweb.cgi?a=commitdiff_plain;h=f900fc11a644d65b18e5109361b06e326cc5c022;p=thirdparty%2Futil-linux.git chsh: (man) fix default behavior description Addresses: https://github.com/karelzak/util-linux/issues/967 Signed-off-by: Karel Zak --- diff --git a/login-utils/chsh.1 b/login-utils/chsh.1 index c955b05d89..c523c665f2 100644 --- a/login-utils/chsh.1 +++ b/login-utils/chsh.1 @@ -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"