{
    "content": [
        {
            "type": "text",
            "text": "# pam_sm_acct_mgmt (man)\n\n## NAME\n\npamsmacctmgmt - PAM service function for account management\n\n## SYNOPSIS\n\n#include <security/pammodules.h>\nint pamsmacctmgmt(pamhandlet *pamh, int flags, int argc, const char argv);\n\n## DESCRIPTION\n\nThe pamsmacctmgmt function is the service module's implementation of the pamacctmgmt(3)\ninterface.\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_sm_acct_mgmt",
        "section": "",
        "mode": "man",
        "summary": "pamsmacctmgmt - PAM service function for account management",
        "synopsis": "#include <security/pammodules.h>\nint pamsmacctmgmt(pamhandlet *pamh, int flags, int argc, const char argv);",
        "tldr_summary": null,
        "tldr_examples": [],
        "tldr_source": null,
        "flags": [],
        "examples": [],
        "see_also": [
            {
                "name": "pam",
                "section": "3",
                "url": "https://www.chedong.com/phpMan.php/man/pam/3/json"
            },
            {
                "name": "pamacctmgmt",
                "section": "3",
                "url": "https://www.chedong.com/phpMan.php/man/pamacctmgmt/3/json"
            },
            {
                "name": "pamsmchauthtok",
                "section": "3",
                "url": "https://www.chedong.com/phpMan.php/man/pamsmchauthtok/3/json"
            },
            {
                "name": "pamstrerror",
                "section": "3",
                "url": "https://www.chedong.com/phpMan.php/man/pamstrerror/3/json"
            },
            {
                "name": "PAM",
                "section": "8",
                "url": "https://www.chedong.com/phpMan.php/man/PAM/8/json"
            }
        ],
        "section_outline": [
            {
                "name": "NAME",
                "lines": 2,
                "subsections": []
            },
            {
                "name": "SYNOPSIS",
                "lines": 4,
                "subsections": []
            },
            {
                "name": "DESCRIPTION",
                "lines": 19,
                "subsections": []
            },
            {
                "name": "RETURN VALUES",
                "lines": 20,
                "subsections": []
            },
            {
                "name": "SEE ALSO",
                "lines": 5,
                "subsections": []
            }
        ],
        "sections": {
            "NAME": {
                "content": "pamsmacctmgmt - PAM service function for account management\n",
                "subsections": []
            },
            "SYNOPSIS": {
                "content": "#include <security/pammodules.h>\n\nint pamsmacctmgmt(pamhandlet *pamh, int flags, int argc, const char argv);\n",
                "subsections": []
            },
            "DESCRIPTION": {
                "content": "The pamsmacctmgmt function is the service module's implementation of the pamacctmgmt(3)\ninterface.\n\nThis function performs the task of establishing whether the user is permitted to gain access\nat this time. It should be understood that the user has previously been validated by an\nauthentication module. This function checks for other things. Such things might be: the time\nof day or the date, the terminal line, remote hostname, etc. This function may also determine\nthings like the expiration on passwords, and respond that the user change it before\ncontinuing.\n\nValid flags, which may be logically OR'd with PAMSILENT, are:\n\nPAMSILENT\nDo not emit any messages.\n\nPAMDISALLOWNULLAUTHTOK\nReturn PAMAUTHERR if the database of authentication tokens for this authentication\nmechanism has a NULL entry for the user.\n",
                "subsections": []
            },
            "RETURN VALUES": {
                "content": "PAMACCTEXPIRED\nUser account has expired.\n\nPAMAUTHERR\nAuthentication failure.\n\nPAMNEWAUTHTOKREQD\nThe user's authentication token has expired. Before calling this function again the\napplication will arrange for a new one to be given. This will likely result in a call to\npamsmchauthtok().\n\nPAMPERMDENIED\nPermission denied.\n\nPAMSUCCESS\nThe authentication token was successfully updated.\n\nPAMUSERUNKNOWN\nUser unknown to password service.\n",
                "subsections": []
            },
            "SEE ALSO": {
                "content": "pam(3), pamacctmgmt(3), pamsmchauthtok(3), pamstrerror(3), PAM(8)\n\n\n\nLinux-PAM Manual                             06/08/2020                          PAMSMACCTMGMT(3)",
                "subsections": []
            }
        }
    }
}