PAM_LOGINUID - Online Linux Manual Page

Section : 8
Updated : 09/03/2021
Source : Linux-PAM Manual
Note : Linux−PAM Manual

NAMEpam_loginuid − Record user's login uid to the process attribute

SYNOPSISpam_loginuid​.so [require_auditd]

DESCRIPTIONThe pam_loginuid module sets the loginuid process attribute for the process that was authenticated​. This is necessary for applications to be correctly audited​. This PAM module should only be used for entry point applications like: login, sshd, gdm, vsftpd, crond and atd​. There are probably other entry point applications besides these​. You should not use it for applications like sudo or su as that defeats the purpose by changing the loginuid to the account they just switched to​.

OPTIONSrequire_auditd This option, when given, will cause this module to query the audit daemon status and deny logins if it is not running​.

MODULE TYPES PROVIDEDOnly the session module type is provided​.

RETURN VALUESPAM_SUCCESS The loginuid value is set and auditd is running if check requested​. PAM_IGNORE The /proc/self/loginuid file is not present on the system or the login process runs inside uid namespace and kernel does not support overwriting loginuid​. PAM_SESSION_ERR Any other error prevented setting loginuid or auditd is not running​.

EXAMPLES#%PAM−1​.0 auth required pam_unix​.so auth required pam_nologin​.so account required pam_unix​.so password required pam_unix​.so session required pam_unix​.so session required pam_loginuid​.so

SEE ALSOpam.conf(5), pam.d(5), pam(8), auditctl(8), auditd(8)

AUTHORpam_loginuid was written by Steve Grubb <sgrubb@redhat​.com>
0
Johanes Gumabo
Data Size   :   7,275 byte
man-pam_loginuid.8Build   :   2025-03-22, 13:26   :  
Visitor Screen   :   x
Visitor Counter ( page / site )   :   51 / 4,648,480
Visitor ID   :     :  
Visitor IP   :   216.73.216.158   :  
Visitor Provider   :   AMAZON-02   :  
Provider Position ( lat x lon )   :   39.962500 x -83.006100   :   x
Provider Accuracy Radius ( km )   :   20   :  
Provider City   :   Columbus   :  
Provider Province   :   Ohio ,   :   ,
Provider Country   :   United States   :  
Provider Continent   :   North America   :  
Visitor Recorder   :   Version   :  
Visitor Recorder   :   Library   :  
Online Linux Manual Page   :   Version   :   Online Linux Manual Page - Fedora.40 - march=x86-64 - mtune=generic - 25.03.22
Online Linux Manual Page   :   Library   :   lib_c - 24.10.03 - march=x86-64 - mtune=generic - Fedora.40
Online Linux Manual Page   :   Library   :   lib_m - 24.10.03 - march=x86-64 - mtune=generic - Fedora.40
Data Base   :   Version   :   Online Linux Manual Page Database - 24.04.13 - march=x86-64 - mtune=generic - fedora-38
Data Base   :   Library   :   lib_c - 23.02.07 - march=x86-64 - mtune=generic - fedora.36


Very long time ago, I have the best tutor, Wenzel Svojanovsky. If someone knows the email address of Wenzel Svojanovsky, please send an email to johanesgumabo@gmail.com.

If error, please print screen and send to johanes_gumabo@yahoo.co.id
Under development. Support me via PayPal.