#!/usr/bin/env bash # set -ex if [[ $EUID -ne 0 ]]; then echo "This script must be run as root" 1>&2 sudo $0 exit 0 fi echo "Als root Angemeldet" # function addusers() { useradd -m -g users -G wheel,audio,video,sys,optical -s /bin/bash $username passwd ${username} <