Skip to content

Instantly share code, notes, and snippets.

@imranansari
Forked from tiborvass/create-user.sh
Created May 15, 2019 06:33
Show Gist options
  • Save imranansari/fd6ac723ee98acc42c022f8e7f6931dd to your computer and use it in GitHub Desktop.
Save imranansari/fd6ac723ee98acc42c022f8e7f6931dd to your computer and use it in GitHub Desktop.
#!/bin/bash
useradd -s /bin/bash -m unprivileged
cp -rf ~/.ssh ~unprivileged/
chown -R unprivileged:unprivileged ~unprivileged/.ssh/
curl -O -sSL https://raw.githubusercontent.com/tonistiigi/docker-install/rootless/rootless-install.sh
sh -x rootless-install.sh
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment