{
    "mode": "man",
    "parameter": "pam_usertype",
    "section": "8",
    "url": "https://www.chedong.com/phpMan.php/man/pam_usertype/8/json",
    "generated": "2026-06-15T14:23:52Z",
    "synopsis": "pamusertype.so [flag...] {condition}",
    "sections": {
        "NAME": {
            "content": "pamusertype - check if the authenticated user is a system or regular account\n",
            "subsections": []
        },
        "SYNOPSIS": {
            "content": "pamusertype.so [flag...] {condition}\n",
            "subsections": []
        },
        "DESCRIPTION": {
            "content": "pamusertype.so is designed to succeed or fail authentication based on type of the account of\nthe authenticated user. The type of the account is decided with help of SYSUIDMIN and\nSYSUIDMAX settings in /etc/login.defs. One use is to select whether to load other modules\nbased on this test.\n\nThe module should be given only one condition as module argument. Authentication will succeed\nonly if the condition is met.\n",
            "subsections": []
        },
        "OPTIONS": {
            "content": "The following flags are supported:\n\nuseuid\nEvaluate conditions using the account of the user whose UID the application is running\nunder instead of the user being authenticated.\n",
            "subsections": [
                {
                    "name": "audit",
                    "content": "Log unknown users to the system log.\n\nAvailable conditions are:\n"
                },
                {
                    "name": "issystem",
                    "content": "Succeed if the user is a system user.\n"
                },
                {
                    "name": "isregular",
                    "content": "Succeed if the user is a regular user.\n"
                }
            ]
        },
        "MODULE TYPES PROVIDED": {
            "content": "All module types (account, auth, password and session) are provided.\n",
            "subsections": []
        },
        "RETURN VALUES": {
            "content": "PAMSUCCESS\nThe condition was true.\n\nPAMBUFERR\nMemory buffer error.\n\nPAMCONVERR\nThe conversation method supplied by the application failed to obtain the username.\n\nPAMINCOMPLETE\nThe conversation method supplied by the application returned PAMCONVAGAIN.\n\nPAMAUTHERR\nThe condition was false.\n\nPAMSERVICEERR\nA service error occurred or the arguments can't be parsed correctly.\n\nPAMUSERUNKNOWN\nUser was not found.\n",
            "subsections": []
        },
        "EXAMPLES": {
            "content": "Skip remaining modules if the user is a system user:\n\naccount sufficient pamusertype.so issystem\n\n",
            "subsections": []
        },
        "SEE ALSO": {
            "content": "login.defs(5), pam(8)\n",
            "subsections": []
        },
        "AUTHOR": {
            "content": "Pavel Březina <pbrezina@redhat.com>\n\n\n\nLinux-PAM                                    06/08/2020                              PAMUSERTYPE(8)",
            "subsections": []
        }
    },
    "summary": "pamusertype - check if the authenticated user is a system or regular account",
    "flags": [],
    "examples": [
        "Skip remaining modules if the user is a system user:",
        "account sufficient pamusertype.so issystem"
    ],
    "see_also": [
        {
            "name": "login.defs",
            "section": "5",
            "url": "https://www.chedong.com/phpMan.php/man/login.defs/5/json"
        },
        {
            "name": "pam",
            "section": "8",
            "url": "https://www.chedong.com/phpMan.php/man/pam/8/json"
        }
    ]
}