{
    "mode": "man",
    "parameter": "pam_acct_mgmt",
    "section": "3",
    "url": "https://www.chedong.com/phpMan.php/man/pam_acct_mgmt/3/json",
    "generated": "2026-10-05T21:10:54Z",
    "synopsis": "",
    "sections": {
        "NAME": {
            "content": "pamacctmgmt - PAM account validation management\n",
            "subsections": []
        },
        "SYNOPSIS": {
            "content": "",
            "subsections": [
                {
                    "name": "#include <security/pam_appl.h>",
                    "content": "int pamacctmgmt(pamhandlet *pamh, int flags);\n"
                }
            ]
        },
        "DESCRIPTION": {
            "content": "The pamacctmgmt function is used to determine if the user's account is valid. It checks for\nauthentication token and account expiration and verifies access restrictions. It is typically\ncalled after the user has been authenticated.\n\nThe pamh argument is an authentication handle obtained by a prior call to pamstart(). The\nflags argument is the binary or of zero or more of the following values:\n\nPAMSILENT\nDo not emit any messages.\n\nPAMDISALLOWNULLAUTHTOK\nThe PAM module service should return PAMNEWAUTHTOKREQD if the user has a null\nauthentication token.\n",
            "subsections": []
        },
        "RETURN VALUES": {
            "content": "PAMACCTEXPIRED\nUser account has expired.\n\nPAMAUTHERR\nAuthentication failure.\n\nPAMNEWAUTHTOKREQD\nThe user account is valid but their authentication token is expired. The correct response\nto this return-value is to require that the user satisfies the pamchauthtok() function\nbefore obtaining service. It may not be possible for some applications to do this. In\nsuch cases, the user should be denied access until such time as they can update their\npassword.\n\nPAMPERMDENIED\nPermission denied.\n\nPAMSUCCESS\nThe authentication token was successfully updated.\n\nPAMUSERUNKNOWN\nUser unknown to password service.\n",
            "subsections": []
        },
        "SEE ALSO": {
            "content": "pamstart(3), pamauthenticate(3), pamchauthtok(3), pamstrerror(3), pam(7)\n\nLinux-PAM                                    05/07/2023                             PAMACCTMGMT(3)",
            "subsections": []
        }
    },
    "summary": "pamacctmgmt - PAM account validation management",
    "flags": [],
    "examples": [],
    "see_also": [
        {
            "name": "pamstart",
            "section": "3",
            "url": "https://www.chedong.com/phpMan.php/man/pamstart/3/json"
        },
        {
            "name": "pamauthenticate",
            "section": "3",
            "url": "https://www.chedong.com/phpMan.php/man/pamauthenticate/3/json"
        },
        {
            "name": "pamchauthtok",
            "section": "3",
            "url": "https://www.chedong.com/phpMan.php/man/pamchauthtok/3/json"
        },
        {
            "name": "pamstrerror",
            "section": "3",
            "url": "https://www.chedong.com/phpMan.php/man/pamstrerror/3/json"
        },
        {
            "name": "pam",
            "section": "7",
            "url": "https://www.chedong.com/phpMan.php/man/pam/7/json"
        }
    ]
}