{
    "mode": "man",
    "parameter": "PAM_DEBUG",
    "section": "8",
    "url": "https://www.chedong.com/phpMan.php/man/PAM_DEBUG/8/json",
    "generated": "2026-06-14T13:01:28Z",
    "synopsis": "pamdebug.so [auth=value] [cred=value] [acct=value] [prechauthtok=value] [chauthtok=value]\n[auth=value] [opensession=value] [closesession=value]",
    "sections": {
        "NAME": {
            "content": "pamdebug - PAM module to debug the PAM stack\n",
            "subsections": []
        },
        "SYNOPSIS": {
            "content": "pamdebug.so [auth=value] [cred=value] [acct=value] [prechauthtok=value] [chauthtok=value]\n[auth=value] [opensession=value] [closesession=value]\n",
            "subsections": []
        },
        "DESCRIPTION": {
            "content": "The pamdebug PAM module is intended as a debugging aide for determining how the PAM stack is\noperating. This module returns what its module arguments tell it to return.\n",
            "subsections": []
        },
        "OPTIONS": {
            "content": "auth=value\nThe pamsmauthenticate(3) function will return value.\n\ncred=value\nThe pamsmsetcred(3) function will return value.\n\nacct=value\nThe pamsmacctmgmt(3) function will return value.\n\nprechauthtok=value\nThe pamsmchauthtok(3) function will return value if the PAMPRELIMCHECK flag is set.\n\nchauthtok=value\nThe pamsmchauthtok(3) function will return value if the PAMPRELIMCHECK flag is not\nset.\n\nopensession=value\nThe pamsmopensession(3) function will return value.\n\nclosesession=value\nThe pamsmclosesession(3) function will return value.\n\nWhere value can be one of: success, openerr, symbolerr, serviceerr, systemerr, buferr,\npermdenied, autherr, credinsufficient, authinfounavail, userunknown, maxtries,\nnewauthtokreqd, acctexpired, sessionerr, credunavail, credexpired, crederr,\nnomoduledata, converr, authtokerr, authtokrecovererr, authtoklockbusy,\nauthtokdisableaging, tryagain, ignore, abort, authtokexpired, moduleunknown, baditem,\nconvagain, incomplete.\n",
            "subsections": []
        },
        "MODULE TYPES PROVIDED": {
            "content": "All module types (auth, account, password and session) are provided.\n",
            "subsections": []
        },
        "RETURN VALUES": {
            "content": "PAMSUCCESS\nDefault return code if no other value was specified, else specified return value.\n",
            "subsections": []
        },
        "EXAMPLES": {
            "content": "auth    requisite       pampermit.so\nauth    [success=2 default=ok]  pamdebug.so auth=permdenied cred=success\nauth    [default=reset]         pamdebug.so auth=success cred=permdenied\nauth    [success=done default=die] pamdebug.so\nauth    optional        pamdebug.so auth=permdenied cred=permdenied\nauth    sufficient      pamdebug.so auth=success cred=success\n\n",
            "subsections": []
        },
        "SEE ALSO": {
            "content": "pam.conf(5), pam.d(5), pam(7)\n",
            "subsections": []
        },
        "AUTHOR": {
            "content": "pamdebug was written by Andrew G. Morgan <morgan@kernel.org>.\n\n\n\nLinux-PAM Manual                             06/08/2020                                 PAMDEBUG(8)",
            "subsections": []
        }
    },
    "summary": "pamdebug - PAM module to debug the PAM stack",
    "flags": [],
    "examples": [
        "auth    requisite       pampermit.so",
        "auth    [success=2 default=ok]  pamdebug.so auth=permdenied cred=success",
        "auth    [default=reset]         pamdebug.so auth=success cred=permdenied",
        "auth    [success=done default=die] pamdebug.so",
        "auth    optional        pamdebug.so auth=permdenied cred=permdenied",
        "auth    sufficient      pamdebug.so auth=success cred=success"
    ],
    "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"
        }
    ]
}