s6
Software
skarnet.org

The s6-envuidgid program

s6-envuidgid sets the UID, GID and GIDLIST environment variables, then executes into another program.

Interface

     s6-envuidgid account prog...

Notes

s6-envuidgid behaves like envuidgid, except that:

s6-envuidgid is useful when running a program that must start as root but can drop its privileges later. Such a program can read its new uid/gid/groups info from the UID, GID and GIDLIST environment variables. Superservers such as s6-tcpserver4 make use of this.