Add the loginuid pam module, as we are starting a session.

So /proc/<uid>/loginuid will be filled by the uid of the user.
This will fix entries in 'last' with "gone - no logout" instead of
'still logged in'
This commit is contained in:
BLINDAUER Emmanuel 2017-11-11 11:26:21 +01:00 committed by matt335672
parent eaffeaf53f
commit 2af2e032c3
3 changed files with 8 additions and 0 deletions

View File

@ -9,6 +9,8 @@ auth required pam_env.so readenv=1 envfile=/etc/default/locale
@include common-password
# Set the loginuid process attribute.
session required pam_loginuid.so
@include common-session
-session optional pam_gnome_keyring.so auto_start
-session optional pam_kwallet5.so auto_start

View File

@ -1,5 +1,8 @@
#%PAM-1.0
auth include password-auth
account include password-auth
# Set the loginuid process attribute.
session required pam_loginuid.so
session include password-auth
password include password-auth

View File

@ -1,5 +1,8 @@
#%PAM-1.0
auth include common-auth
account include common-account
# Set the loginuid process attribute.
session required pam_loginuid.so
session include common-session
password include common-password