{
    "content": [
        {
            "type": "text",
            "text": "# pam_open_session (man)\n\n## NAME\n\npamopensession - start PAM session management\n\n## SYNOPSIS\n\n#include <security/pamappl.h>\nint pamopensession(pamhandlet *pamh, int flags);\n\n## DESCRIPTION\n\nThe pamopensession function sets up a user session for a previously successful\nauthenticated user. The session should later be terminated with a call to\npamclosesession(3).\n\n## Sections\n\n- **NAME**\n- **SYNOPSIS**\n- **DESCRIPTION**\n- **RETURN VALUES**\n- **SEE ALSO**\n\nUse structuredContent.sections for detailed options, examples, and full documentation.\n"
        }
    ],
    "structuredContent": {
        "command": "pam_open_session",
        "section": "",
        "mode": "man",
        "summary": "pamopensession - start PAM session management",
        "synopsis": "#include <security/pamappl.h>\nint pamopensession(pamhandlet *pamh, int flags);",
        "tldr_summary": null,
        "tldr_examples": [],
        "tldr_source": null,
        "flags": [],
        "examples": [],
        "see_also": [
            {
                "name": "pamclosesession",
                "section": "3",
                "url": "https://www.chedong.com/phpMan.php/man/pamclosesession/3/json"
            },
            {
                "name": "pamstrerror",
                "section": "3",
                "url": "https://www.chedong.com/phpMan.php/man/pamstrerror/3/json"
            }
        ],
        "section_outline": [
            {
                "name": "NAME",
                "lines": 2,
                "subsections": []
            },
            {
                "name": "SYNOPSIS",
                "lines": 4,
                "subsections": []
            },
            {
                "name": "DESCRIPTION",
                "lines": 13,
                "subsections": []
            },
            {
                "name": "RETURN VALUES",
                "lines": 12,
                "subsections": []
            },
            {
                "name": "SEE ALSO",
                "lines": 5,
                "subsections": []
            }
        ],
        "sections": {
            "NAME": {
                "content": "pamopensession - start PAM session management\n",
                "subsections": []
            },
            "SYNOPSIS": {
                "content": "#include <security/pamappl.h>\n\nint pamopensession(pamhandlet *pamh, int flags);\n",
                "subsections": []
            },
            "DESCRIPTION": {
                "content": "The pamopensession function sets up a user session for a previously successful\nauthenticated user. The session should later be terminated with a call to\npamclosesession(3).\n\nIt should be noted that the effective uid, geteuid(2). of the application should be of\nsufficient privilege to perform such tasks as creating or mounting the user's home directory\nfor example.\n\nThe flags argument is the binary or of zero or more of the following values:\n\nPAMSILENT\nDo not emit any messages.\n",
                "subsections": []
            },
            "RETURN VALUES": {
                "content": "PAMABORT\nGeneral failure.\n\nPAMBUFERR\nMemory buffer error.\n\nPAMSESSIONERR\nSession failure.\n\nPAMSUCCESS\nSession was successful created.\n",
                "subsections": []
            },
            "SEE ALSO": {
                "content": "pamclosesession(3), pamstrerror(3)\n\n\n\nLinux-PAM Manual                             06/08/2020                          PAMOPENSESSION(3)",
                "subsections": []
            }
        }
    }
}