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 Koichiro IWAO
parent 8493e08667
commit 7d8f7c14b5
No known key found for this signature in database
GPG Key ID: 9F72CDBC01BF10EB
3 changed files with 9 additions and 0 deletions

View File

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

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