{
    "content": [
        {
            "type": "text",
            "text": "# pam_loginuid (man)\n\n## NAME\n\npamloginuid - Record user's login uid to the process attribute\n\n## SYNOPSIS\n\npamloginuid.so [requireauditd]\n\n## DESCRIPTION\n\nThe pamloginuid module sets the loginuid process attribute for the process that was\nauthenticated. This is necessary for applications to be correctly audited. This PAM module\nshould only be used for entry point applications like: login, sshd, gdm, vsftpd, crond and\natd. There are probably other entry point applications besides these. You should not use it\nfor applications like sudo or su as that defeats the purpose by changing the loginuid to the\naccount they just switched to.\n\n## Sections\n\n- **NAME**\n- **SYNOPSIS**\n- **DESCRIPTION**\n- **OPTIONS**\n- **MODULE TYPES PROVIDED**\n- **RETURN VALUES**\n- **EXAMPLES**\n- **SEE ALSO**\n- **AUTHOR**\n\nUse structuredContent.sections for detailed options, examples, and full documentation.\n"
        }
    ],
    "structuredContent": {
        "command": "pam_loginuid",
        "section": "",
        "mode": "man",
        "summary": "pamloginuid - Record user's login uid to the process attribute",
        "synopsis": "pamloginuid.so [requireauditd]",
        "tldr_summary": null,
        "tldr_examples": [],
        "tldr_source": null,
        "flags": [],
        "examples": [
            "#%PAM-1.0",
            "auth       required     pamunix.so",
            "auth       required     pamnologin.so",
            "account    required     pamunix.so",
            "password   required     pamunix.so",
            "session    required     pamunix.so",
            "session    required     pamloginuid.so"
        ],
        "see_also": [
            {
                "name": "pam.conf",
                "section": "5",
                "url": "https://www.chedong.com/phpMan.php/man/pam.conf/5/json"
            },
            {
                "name": "pam.d",
                "section": "5",
                "url": "https://www.chedong.com/phpMan.php/man/pam.d/5/json"
            },
            {
                "name": "pam",
                "section": "7",
                "url": "https://www.chedong.com/phpMan.php/man/pam/7/json"
            },
            {
                "name": "auditctl",
                "section": "8",
                "url": "https://www.chedong.com/phpMan.php/man/auditctl/8/json"
            },
            {
                "name": "auditd",
                "section": "8",
                "url": "https://www.chedong.com/phpMan.php/man/auditd/8/json"
            }
        ],
        "section_outline": [
            {
                "name": "NAME",
                "lines": 2,
                "subsections": []
            },
            {
                "name": "SYNOPSIS",
                "lines": 2,
                "subsections": []
            },
            {
                "name": "DESCRIPTION",
                "lines": 7,
                "subsections": []
            },
            {
                "name": "OPTIONS",
                "lines": 4,
                "subsections": []
            },
            {
                "name": "MODULE TYPES PROVIDED",
                "lines": 2,
                "subsections": []
            },
            {
                "name": "RETURN VALUES",
                "lines": 10,
                "subsections": []
            },
            {
                "name": "EXAMPLES",
                "lines": 9,
                "subsections": []
            },
            {
                "name": "SEE ALSO",
                "lines": 2,
                "subsections": []
            },
            {
                "name": "AUTHOR",
                "lines": 5,
                "subsections": []
            }
        ],
        "sections": {
            "NAME": {
                "content": "pamloginuid - Record user's login uid to the process attribute\n",
                "subsections": []
            },
            "SYNOPSIS": {
                "content": "pamloginuid.so [requireauditd]\n",
                "subsections": []
            },
            "DESCRIPTION": {
                "content": "The pamloginuid module sets the loginuid process attribute for the process that was\nauthenticated. This is necessary for applications to be correctly audited. This PAM module\nshould only be used for entry point applications like: login, sshd, gdm, vsftpd, crond and\natd. There are probably other entry point applications besides these. You should not use it\nfor applications like sudo or su as that defeats the purpose by changing the loginuid to the\naccount they just switched to.\n",
                "subsections": []
            },
            "OPTIONS": {
                "content": "requireauditd\nThis option, when given, will cause this module to query the audit daemon status and deny\nlogins if it is not running.\n",
                "subsections": []
            },
            "MODULE TYPES PROVIDED": {
                "content": "Only the session module type is provided.\n",
                "subsections": []
            },
            "RETURN VALUES": {
                "content": "PAMSUCCESS\nThe loginuid value is set and auditd is running if check requested.\n\nPAMIGNORE\nThe /proc/self/loginuid file is not present on the system or the login process runs\ninside uid namespace and kernel does not support overwriting loginuid.\n\nPAMSESSIONERR\nAny other error prevented setting loginuid or auditd is not running.\n",
                "subsections": []
            },
            "EXAMPLES": {
                "content": "#%PAM-1.0\nauth       required     pamunix.so\nauth       required     pamnologin.so\naccount    required     pamunix.so\npassword   required     pamunix.so\nsession    required     pamunix.so\nsession    required     pamloginuid.so\n\n",
                "subsections": []
            },
            "SEE ALSO": {
                "content": "pam.conf(5), pam.d(5), pam(7), auditctl(8), auditd(8)\n",
                "subsections": []
            },
            "AUTHOR": {
                "content": "pamloginuid was written by Steve Grubb <sgrubb@redhat.com>\n\n\n\nLinux-PAM Manual                             06/08/2020                              PAMLOGINUID(8)",
                "subsections": []
            }
        }
    }
}