1 <?xml version="1.0" encoding='UTF-8'?>
2 <!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN"
3 "http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd">
5 <refentry id="pam_loginuid">
8 <refentrytitle>pam_loginuid</refentrytitle>
9 <manvolnum>8</manvolnum>
10 <refmiscinfo class="sectdesc">Linux-PAM Manual</refmiscinfo>
13 <refnamediv id="pam_loginuid-name">
14 <refname>pam_loginuid</refname>
15 <refpurpose>Record user's login uid to the process attribute</refpurpose>
19 <cmdsynopsis id="pam_loginuid-cmdsynopsis">
20 <command>pam_loginuid.so</command>
27 <refsect1 id="pam_loginuid-description">
29 <title>DESCRIPTION</title>
32 The pam_loginuid module sets the loginuid process attribute for the
33 process that was authenticated. This is necessary for applications
34 to be correctly audited. This PAM module should only be used for entry
35 point applications like: login, sshd, gdm, vsftpd, crond and atd.
36 There are probably other entry point applications besides these.
37 You should not use it for applications like sudo or su as that
38 defeats the purpose by changing the loginuid to the account they just
43 <refsect1 id="pam_loginuid-options">
44 <title>OPTIONS</title>
48 <option>require_auditd</option>
52 This option, when given, will cause this module to query
53 the audit daemon status and deny logins if it is not running.
60 <refsect1 id="pam_loginuid-types">
61 <title>MODULE TYPES PROVIDED</title>
63 Only the <option>session</option> module type is provided.
67 <refsect1 id='pam_loginuid-return_values'>
68 <title>RETURN VALUES</title>
72 <term>PAM_SESSION_ERR</term>
75 An error occurred during session management.
84 <refsect1 id='pam_loginuid-examples'>
85 <title>EXAMPLES</title>
88 auth required pam_unix.so
89 auth required pam_nologin.so
90 account required pam_unix.so
91 password required pam_unix.so
92 session required pam_unix.so
93 session required pam_loginuid.so
97 <refsect1 id='pam_loginuid-see_also'>
98 <title>SEE ALSO</title>
101 <refentrytitle>pam.conf</refentrytitle><manvolnum>5</manvolnum>
104 <refentrytitle>pam.d</refentrytitle><manvolnum>5</manvolnum>
107 <refentrytitle>pam</refentrytitle><manvolnum>8</manvolnum>
110 <refentrytitle>auditctl</refentrytitle><manvolnum>8</manvolnum>
113 <refentrytitle>auditd</refentrytitle><manvolnum>8</manvolnum>
118 <refsect1 id='pam_loginuid-author'>
119 <title>AUTHOR</title>
121 pam_loginuid was written by Steve Grubb <sgrubb@redhat.com>