{
    "content": [
        {
            "type": "text",
            "text": "# pam_open_session (man)\n\n## NAME\n\npamopensession - start PAM session management\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** (1 subsections)\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": "",
        "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": 1,
                "subsections": [
                    {
                        "name": "#include <security/pam_appl.h>",
                        "lines": 2
                    }
                ]
            },
            {
                "name": "DESCRIPTION",
                "lines": 13,
                "subsections": []
            },
            {
                "name": "RETURN VALUES",
                "lines": 12,
                "subsections": []
            },
            {
                "name": "SEE ALSO",
                "lines": 3,
                "subsections": []
            }
        ],
        "sections": {
            "NAME": {
                "content": "pamopensession - start PAM session management\n",
                "subsections": []
            },
            "SYNOPSIS": {
                "content": "",
                "subsections": [
                    {
                        "name": "#include <security/pam_appl.h>",
                        "content": "int pamopensession(pamhandlet *pamh, int flags);\n"
                    }
                ]
            },
            "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\nLinux-PAM                                    05/07/2023                          PAMOPENSESSION(3)",
                "subsections": []
            }
        }
    }
}