]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
login: document blank treatment in shell field
authorTobias Stoeckmann <tobias@stoeckmann.org>
Tue, 9 Jan 2024 20:07:39 +0000 (21:07 +0100)
committerTobias Stoeckmann <tobias@stoeckmann.org>
Tue, 9 Jan 2024 20:07:39 +0000 (21:07 +0100)
If the shell field contains a blank, then the shell field is
interpreted as a shell script.

Signed-off-by: Tobias Stoeckmann <tobias@stoeckmann.org>
login-utils/login.1.adoc

index ee8559b51a8a7ed59ab40a72b7a639eeb31e0f5a..7a7b82d2d713ae9dd0d42f9db20f4fb97264d150 100644 (file)
@@ -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.