From: Tobias Stoeckmann Date: Tue, 9 Jan 2024 20:07:39 +0000 (+0100) Subject: login: document blank treatment in shell field X-Git-Tag: v2.40-rc1~55^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=a53f5d9bbc1674158bba1b998255087534fb111c;p=thirdparty%2Futil-linux.git login: document blank treatment in shell field If the shell field contains a blank, then the shell field is interpreted as a shell script. Signed-off-by: Tobias Stoeckmann --- diff --git a/login-utils/login.1.adoc b/login-utils/login.1.adoc index ee8559b51a..7a7b82d2d7 100644 --- a/login-utils/login.1.adoc +++ b/login-utils/login.1.adoc @@ -32,7 +32,7 @@ The environment variable *$TERM* will be preserved, if it exists, else it will b The environment variables defined by PAM are always preserved. -Then the user's shell is started. If no shell is specified for the user in _/etc/passwd_, then _/bin/sh_ is used. If there is no home directory specified in _/etc/passwd_, then _/_ is used, followed by _.hushlogin_ check as described below. +Then the user's shell is started. If no shell is specified for the user in _/etc/passwd_, then _/bin/sh_ is used. If the specified shell contains a space, it is treated as a shell script. If there is no home directory specified in _/etc/passwd_, then _/_ is used, followed by _.hushlogin_ check as described below. If the file _.hushlogin_ exists, then a "quiet" login is performed. This disables the checking of mail and the printing of the last login time and message of the day. Otherwise, if _/var/log/lastlog_ exists, the last login time is printed, and the current login is recorded.