all options
buster  ] [  bullseye  ] [  bookworm  ] [  trixie  ] [  sid  ]
[ Source: gosu  ]

Package: gosu (1.17-1)

Links for gosu

Screenshot

Debian Resources:

Download Source Package gosu:

Maintainers:

External Resources:

Similar packages:

Simple Go-based setuid+setgid+setgroups+exec

This is a simple tool grown out of the simple fact that "su" and "sudo" have very strange and often annoying TTY and signal-forwarding behavior. They're also somewhat complex to setup and use (especially in the case of "sudo"), which allows for a great deal of expressivity, but falls flat if all you need is "run this specific application as this specific user and get out of the pipeline".

The core of how "gosu" works is stolen directly from how Docker/libcontainer itself starts an application inside a container (and in fact, is using the "/etc/passwd" processing code directly from libcontainer's codebase).

Once the user/group is processed, we switch to that user, then we "exec" the specified process and "gosu" itself is no longer resident or involved in the process lifecycle at all. This avoids all the issues of signal passing and TTY, and punts them to the process invoking "gosu" and the process being invoked by "gosu", where they belong.

Download gosu

Download for all available architectures
Architecture Package Size Installed Size Files
amd64 808.1 kB2,367.0 kB [list of files]
arm64 700.7 kB2,371.0 kB [list of files]
armel 719.4 kB2,358.0 kB [list of files]
armhf 713.1 kB2,358.0 kB [list of files]
i386 779.9 kB2,279.0 kB [list of files]
mips64el 655.9 kB2,708.0 kB [list of files]
ppc64el 697.7 kB2,435.0 kB [list of files]
s390x 738.6 kB2,563.0 kB [list of files]