S6-APPLYUIDGID(8)
β¨ NAME β¨
Okay so bestie, welcome to the s6-applyuidgid(8) page from the System Manager's Manual π β s6-applyuidgid β execute a program with reduced privileges. That's the whole vibe: it lets you run a program with less power than root, and it's lowkey iconic for that. π
πΈ SYNOPSIS πΈ
s6-applyuidgid [-z] [-u uid] [-g gid] [-G gidlist] [-U] prog...
π DESCRIPTION π
So here's the tea β: s6-applyuidgid sets its uid, gid and supplementary group list to the values given, then executes into prog. It can only be run as root. No cap, that's the rule. π
Its main use is to drop root privileges before starting a daemon β very "main character steps down from the throne so the daemon can live its best life" energy. π«Ά
It's a more generic version of s6-setuidgid(8). It is used as a command line building block by some programs that rewrite their command line, such as s6-tcpserver(8). Literally a tiny building block doing big things. π§
π OPTIONS π
-u uidβ Set the process' user ID touid. π-g gidβ Set the process' group ID togid. π-G gidlistβ Set the process' supplementary group list togidlist, which must be given as a comma-separated list of numeric GIDs, without spaces. So yes: commas in, spaces out. β¨-Uβ Set the process' user ID, group ID and supplementary group list to the values of theUID,GIDandGIDLISTenvironment variables. If a-u,-gor-Goption is given after-U, the command line value overrides the environment variable. Command line stays winning, fr fr. π₯-zβ Unexport. TheUID,GIDandGIDLISTvariables will be removed from the process environment. Poof, gone, not invited to the afterparty. π¨
π¦ SEE ALSO π¦
s6-envdir(8)s6-envuidgid(8)s6-fghack(8)s6-setsid(8)s6-setuidgid(8)s6-softlimit(8)s6-tai64n(8)s6-tai64nlocal(8)s6-tcpserver(8)
This man page is ported from the authoritative documentation at: https://skarnet.org/software/s6/s6-applyuidgid.html π
π AUTHORS π
- Laurent Bercot
- Alexis <flexibeast@gmail.com> (man page port)
And that's the whole page, bestie π β brought to you by the Debian version dated September 29, 2021, chilling under the S6-APPLYUIDGID(8) footer banner. Slay. π
π
π¦ where this page comes from
- nixpkgs unstable: s6 2.15.1.0
- nixpkgs unstable: s6-man-pages 2.14.0.1.4
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms