@tianon tianon released this Oct 15, 2018 · 2 commits to master since this release

  • built on Go 1.11.1, runc 1.0.0-rc5, Alpine 3.8
  • added explicit --version and --help flags (#44)

4096R / B42F 6819 007F 00F8 8E36 4FD4 036A 9C25 BF35 7DD4

See INSTALL.md for (example) installation instructions.

Assets 20

@tianon tianon released this Sep 28, 2016 · 19 commits to master since this release

  • built on Go 1.7 (#25)
  • official s390x release binary (#28)
  • slightly simpler usage output

4096R / B42F 6819 007F 00F8 8E36 4FD4 036A 9C25 BF35 7DD4

$ arch="$(dpkg --print-architecture | awk -F- '{ print $NF }')"
$ wget -O gosu "https://github.com/tianon/gosu/releases/download/1.10/gosu-$arch"
$ chmod +x gosu
$ ./gosu
Usage: gosu user-spec command [args]
   ie: gosu tianon bash
       gosu nobody:root bash -c 'whoami && id'
       gosu 1000:1 id

gosu version: 1.10 (go1.7.1 on linux/amd64; gc)
     license: GPL-3 (full text at https://github.com/tianon/gosu)
Assets 20
1.9

@tianon tianon released this May 11, 2016 · 28 commits to master since this release

  • fix cross-compilation of official binaries (#19)

4096R / B42F 6819 007F 00F8 8E36 4FD4 036A 9C25 BF35 7DD4

$ arch="$(dpkg --print-architecture | awk -F- '{ print $NF }')"
$ wget -O gosu "https://github.com/tianon/gosu/releases/download/1.9/gosu-$arch"
$ chmod +x gosu
$ ./gosu
Usage: ./gosu user-spec command [args]
   ie: ./gosu tianon bash
       ./gosu nobody:root bash -c 'whoami && id'
       ./gosu 1000:1 id

./gosu version: 1.9 (go1.6.2 on linux/amd64; gc)
Assets 18
1.8

@tianon tianon released this Apr 19, 2016 · 32 commits to master since this release

  • build against Go 1.6
  • add -s and -w to -ldflags so that release binaries are even smaller (~2.6M down to ~1.8M)
  • add simple integration test suite

4096R / B42F 6819 007F 00F8 8E36 4FD4 036A 9C25 BF35 7DD4

$ curl -o gosu -fsSL "https://github.com/tianon/gosu/releases/download/1.8/gosu-$(dpkg --print-architecture)"
$ chmod +x gosu
$ ./gosu
Usage: ./gosu user-spec command [args]
   ie: ./gosu tianon bash
       ./gosu nobody:root bash -c 'whoami && id'
       ./gosu 1000:1 id

./gosu version: 1.8 (go1.6.1 on linux/amd64; gc)

Update: binaries had to be pulled; for details, see #19 (and 1.9)

Assets 6
1.7

@tianon tianon released this Nov 8, 2015 · 54 commits to master since this release

  • update to use github.com/opencontainers/runc/libcontainer instead of github.com/docker/libcontainer
  • add arm64, ppc64, and ppc64le to cross-compiled official binaries

4096R / B42F 6819 007F 00F8 8E36 4FD4 036A 9C25 BF35 7DD4

$ curl -o gosu -fsSL "https://github.com/tianon/gosu/releases/download/1.7/gosu-$(dpkg --print-architecture)"
$ chmod +x gosu
$ ./gosu
Usage: ./gosu user-spec command [args]
   ie: ./gosu tianon bash
       ./gosu nobody:root bash -c 'whoami && id'
       ./gosu 1000:1 id

./gosu version: 1.7 (go1.5.1 on linux/amd64; gc)
Assets 18
1.6

@tianon tianon released this Oct 6, 2015 · 57 commits to master since this release

  • revert fchown(2) all open file descriptors; turns out that's NOT OK (see discussion #8 for details)

4096R / B42F 6819 007F 00F8 8E36 4FD4 036A 9C25 BF35 7DD4

$ curl -o gosu -sSL "https://github.com/tianon/gosu/releases/download/1.6/gosu-$(dpkg --print-architecture)"
$ chmod +x gosu
$ ./gosu
Usage: ./gosu user-spec command [args]
   ie: ./gosu tianon bash
       ./gosu nobody:root bash -c 'whoami && id'
       ./gosu 1000:1 id

./gosu version: 1.6 (go1.5.1 on linux/amd64; gc)
Assets 12
1.5

@tianon tianon released this Sep 25, 2015 · 63 commits to master since this release

  • build against Go 1.5
  • fchown(2) all open file descriptors before switching users so that they can be used appropriately by the user we're switching to

4096R / B42F 6819 007F 00F8 8E36 4FD4 036A 9C25 BF35 7DD4

$ curl -o gosu -sSL "https://github.com/tianon/gosu/releases/download/1.5/gosu-$(dpkg --print-architecture)"
$ chmod +x gosu
$ ./gosu
Usage: ./gosu user-spec command [args]
   ie: ./gosu tianon bash
       ./gosu nobody:root bash -c 'whoami && id'
       ./gosu 1000:1 id

./gosu version: 1.5 (go1.5.1 on linux/amd64; gc)
Assets 12
1.4

@tianon tianon released this Apr 20, 2015 · 72 commits to master since this release

4096R / B42F 6819 007F 00F8 8E36 4FD4 036A 9C25 BF35 7DD4

$ curl -o gosu -sSL "https://github.com/tianon/gosu/releases/download/1.4/gosu-$(dpkg --print-architecture)"
$ chmod +x gosu
$ ./gosu
Usage: ./gosu user-spec command [args]
   ie: ./gosu tianon bash
       ./gosu nobody:root bash -c 'whoami && id'
       ./gosu 1000:1 id

./gosu version: 1.4 (go1.4.2 on linux/amd64; gc)
Assets 12
1.3

@tianon tianon released this Mar 24, 2015 · 74 commits to master since this release

  • golang:1.4
  • always set HOME (#3)

4096R / B42F 6819 007F 00F8 8E36 4FD4 036A 9C25 BF35 7DD4

$ curl -o gosu -sSL "https://github.com/tianon/gosu/releases/download/1.3/gosu-$(dpkg --print-architecture)"
$ chmod +x gosu
$ ./gosu
Usage: ./gosu user-spec command [args]
   ie: ./gosu tianon bash
       ./gosu nobody:root bash -c 'whoami && id'
       ./gosu 1000:1 id

./gosu version: 1.3 (go1.4.2 on linux/amd64; gc)
Assets 12
1.2

@tianon tianon released this Nov 19, 2014 · 80 commits to master since this release

$ curl -o gosu -sSL "https://github.com/tianon/gosu/releases/download/1.2/gosu-$(dpkg --print-architecture)"
$ chmod +x gosu
$ ./gosu
Usage: ./gosu user-spec command [args]
   ie: ./gosu tianon bash
       ./gosu nobody:root bash -c 'whoami && id'
       ./gosu 1000:1 id

./gosu version: 1.2 (go1.3.3 on linux/amd64; gc)
Assets 12