Skip to content

Instantly share code, notes, and snippets.

@rodgert
Created March 26, 2018 15:44
Show Gist options
  • Save rodgert/aa6f43fff18691c64c6f388b85f03c2b to your computer and use it in GitHub Desktop.
Save rodgert/aa6f43fff18691c64c6f388b85f03c2b to your computer and use it in GitHub Desktop.
f27 with perms fixup con.
#! /bin/bash
USER_ID=${LOCAL_USER_ID:-9001}
echo "Starting with UID : $USER_ID"
useradd --shell /bin/bash -u $USER_ID -o -c "" -m user
export HOME=/home/user
exec /usr/local/bin/gosu user "$@"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment