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:
parent
8493e08667
commit
7d8f7c14b5
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user