{
    "mode": "man",
    "parameter": "pam_misc_setenv",
    "section": "3",
    "url": "https://www.chedong.com/phpMan.php/man/pam_misc_setenv/3/json",
    "generated": "2026-10-04T08:28:32Z",
    "synopsis": "",
    "sections": {
        "NAME": {
            "content": "pammiscsetenv - BSD like PAM environment variable setting\n",
            "subsections": []
        },
        "SYNOPSIS": {
            "content": "",
            "subsections": [
                {
                    "name": "#include <security/pam_misc.h>",
                    "content": "int pammiscsetenv(pamhandlet *pamh, const char *name, const char *value, int readonly);\n"
                }
            ]
        },
        "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\nLinux-PAM                                    05/07/2023                           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"
        }
    ]
}