From 1f47d4a2f0c582d2bbfeb33dc9b3b74c340dcd55 Mon Sep 17 00:00:00 2001 From: Karel Zak Date: Thu, 27 Feb 2020 13:54:05 +0100 Subject: [PATCH] chsh: (man) fix default behavior description Addresses: https://github.com/karelzak/util-linux/issues/967 Signed-off-by: Karel Zak --- login-utils/chsh.1 | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) 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" -- 2.47.3