diff --git a/sheet05/a1/create_user.sh b/sheet05/a1/create_user.sh index e69de29..fe296d6 100644 --- a/sheet05/a1/create_user.sh +++ b/sheet05/a1/create_user.sh @@ -0,0 +1,3 @@ +#!/bin/bash +# $1 = username, $2 = comma-separated groups +useradd -G "$2" -m -s /bin/bash "$1" || usermod -aG "$2" "$1" \ No newline at end of file