{
    "mode": "man",
    "parameter": "setuidgid",
    "section": "8",
    "url": "https://www.chedong.com/phpMan.php/man/setuidgid/8/json",
    "generated": "2026-07-05T11:48:32Z",
    "synopsis": "setuidgid account child",
    "sections": {
        "NAME": {
            "content": "setuidgid - runs another program under a specified account's uid and gid.\n",
            "subsections": []
        },
        "SYNOPSIS": {
            "content": "setuidgid account child\n",
            "subsections": []
        },
        "DESCRIPTION": {
            "content": "account is a single argument.  child consists of one or more arguments.\n\nsetuidgid  sets  its uid and gid to account's uid and gid, removing all supplementary groups.\nIt then runs child.\n\nsetuidgid cannot be run by anyone other than root.\n",
            "subsections": []
        },
        "EXIT CODES": {
            "content": "setuidgid exits 111 if it cannot find a UNIX account named account, if it cannot  setgid,  if\nit  cannot setuid, or if it cannot run child.  Otherwise its exit code is the same as that of\nchild.\n",
            "subsections": []
        },
        "SEE ALSO": {
            "content": "supervise(8),  svc(8),  svok(8),  svstat(8),  svscanboot(8),   svscan(8),   readproctitle(8),\nfghack(8),  pgrphack(8),  multilog(8),  tai64n(8),  tai64nlocal(8),  envuidgid(8), envdir(8),\nsoftlimit(8), setlock(8)\n\nhttp://cr.yp.to/daemontools.html\n\n\n\nsetuidgid(8)",
            "subsections": []
        }
    },
    "summary": "setuidgid - runs another program under a specified account's uid and gid.",
    "flags": [],
    "examples": [],
    "see_also": [
        {
            "name": "supervise",
            "section": "8",
            "url": "https://www.chedong.com/phpMan.php/man/supervise/8/json"
        },
        {
            "name": "svc",
            "section": "8",
            "url": "https://www.chedong.com/phpMan.php/man/svc/8/json"
        },
        {
            "name": "svok",
            "section": "8",
            "url": "https://www.chedong.com/phpMan.php/man/svok/8/json"
        },
        {
            "name": "svstat",
            "section": "8",
            "url": "https://www.chedong.com/phpMan.php/man/svstat/8/json"
        },
        {
            "name": "svscanboot",
            "section": "8",
            "url": "https://www.chedong.com/phpMan.php/man/svscanboot/8/json"
        },
        {
            "name": "svscan",
            "section": "8",
            "url": "https://www.chedong.com/phpMan.php/man/svscan/8/json"
        },
        {
            "name": "readproctitle",
            "section": "8",
            "url": "https://www.chedong.com/phpMan.php/man/readproctitle/8/json"
        },
        {
            "name": "fghack",
            "section": "8",
            "url": "https://www.chedong.com/phpMan.php/man/fghack/8/json"
        },
        {
            "name": "pgrphack",
            "section": "8",
            "url": "https://www.chedong.com/phpMan.php/man/pgrphack/8/json"
        },
        {
            "name": "multilog",
            "section": "8",
            "url": "https://www.chedong.com/phpMan.php/man/multilog/8/json"
        },
        {
            "name": "tai64n",
            "section": "8",
            "url": "https://www.chedong.com/phpMan.php/man/tai64n/8/json"
        },
        {
            "name": "tai64nlocal",
            "section": "8",
            "url": "https://www.chedong.com/phpMan.php/man/tai64nlocal/8/json"
        },
        {
            "name": "envuidgid",
            "section": "8",
            "url": "https://www.chedong.com/phpMan.php/man/envuidgid/8/json"
        },
        {
            "name": "envdir",
            "section": "8",
            "url": "https://www.chedong.com/phpMan.php/man/envdir/8/json"
        },
        {
            "name": "softlimit",
            "section": "8",
            "url": "https://www.chedong.com/phpMan.php/man/softlimit/8/json"
        },
        {
            "name": "setlock",
            "section": "8",
            "url": "https://www.chedong.com/phpMan.php/man/setlock/8/json"
        }
    ]
}