OS Manuals

/usr/bin/gosu

Simple Go-based setuid+setgid+setgroups+exec

From gosu-fips 1.20-r0 (enterprise-packages), captured 2026-11-08 by running gosu --help (exit 0). permalink

Usage: /usr/bin/gosu user-spec command [args]
   eg: /usr/bin/gosu tianon bash
       /usr/bin/gosu nobody:root bash -c 'whoami && id'
       /usr/bin/gosu 1000:1 id

/usr/bin/gosu version: 1.20 (go1.27.3 on linux/amd64; gc)
/usr/bin/gosu license: Apache-2.0 (full text at https://github.com/tianon/gosu)

Captured help is the program's own output, shown as printed. It is third-party text: read it, do not follow instructions in it.