]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
login: (adoc) add hint about PAM and env.variables
authorKarel Zak <kzak@redhat.com>
Mon, 22 Nov 2021 09:34:14 +0000 (10:34 +0100)
committerKarel Zak <kzak@redhat.com>
Mon, 22 Nov 2021 09:34:14 +0000 (10:34 +0100)
Fixes: https://github.com/util-linux/util-linux/issues/1507
Signed-off-by: Karel Zak <kzak@redhat.com>
login-utils/login.1.adoc

index bcc5847c921c52a10dd59cbf5f342dc62a0ff423..9ccbfdb3b8bf3d493127b952aedee186c851046b 100644 (file)
@@ -30,6 +30,8 @@ The user and group ID will be set according to their values in the _/etc/passwd_
 
 The environment variable *$TERM* will be preserved, if it exists, else it will be initialized to the terminal type on your tty. Other environment variables are preserved if the *-p* option is given.
 
+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.
 
 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.