{
    "mode": "man",
    "parameter": "PAM_MISC_SETENV",
    "section": "3",
    "url": "https://www.chedong.com/phpMan.php/man/PAM_MISC_SETENV/3/json",
    "generated": "2026-06-15T14:38:07Z",
    "synopsis": "#include <security/pammisc.h>\nint pammiscsetenv(pamhandlet *pamh, const char *name, const char *value, int readonly);",
    "sections": {
        "NAME": {
            "content": "pammiscsetenv - BSD like PAM environment variable setting\n",
            "subsections": []
        },
        "SYNOPSIS": {
            "content": "#include <security/pammisc.h>\n\nint pammiscsetenv(pamhandlet *pamh, const char *name, const char *value, int readonly);\n",
            "subsections": []
        },
        "DESCRIPTION": {
            "content": "This function performs a task equivalent to pamputenv(3), its syntax is, however, more like\nthe BSD style function; setenv(). The name and value are concatenated with an '=' to form a\nname=value and passed to pamputenv(). If, however, the PAM variable is already set, the\nreplacement will only be applied if the last argument, readonly, is zero.\n",
            "subsections": []
        },
        "SEE ALSO": {
            "content": "pamputenv(3), pam(7)\n",
            "subsections": []
        },
        "STANDARDS": {
            "content": "The pammiscsetenv function is part of the libpammisc Library and not defined in any\nstandard.\n\n\n\nLinux-PAM Manual                             06/08/2020                           PAMMISCSETENV(3)",
            "subsections": []
        }
    },
    "summary": "pammiscsetenv - BSD like PAM environment variable setting",
    "flags": [],
    "examples": [],
    "see_also": [
        {
            "name": "pamputenv",
            "section": "3",
            "url": "https://www.chedong.com/phpMan.php/man/pamputenv/3/json"
        },
        {
            "name": "pam",
            "section": "7",
            "url": "https://www.chedong.com/phpMan.php/man/pam/7/json"
        }
    ]
}