kurkos.sh 281 B

12345678910
  1. #!/bin/sh
  2. # Setup user mapping for unprivileged containers
  3. test -f '/etc/subuid' || touch '/etc/subuid'
  4. /usr/sbin/usermod -v 100000-165535 root
  5. # Setup group mapping for unprivileged containers
  6. test -f '/etc/subgid' || touch '/etc/subgid'
  7. /usr/sbin/usermod -w 100000-165535 root