#!/bin/bash USER=$1 USER_HOME=$(getent passwd "$USER" | cut -d: -f6) echo "%wheel ALL=(ALL:ALL) NOPASSWD: ALL" | EDITOR='tee -a' visudo systemctl enable docker.service usermod -aG docker "$USER" usermod --shell /usr/bin/zsh "$USER" su - "$USER" <