summaryrefslogtreecommitdiff
path: root/localadduser
diff options
context:
space:
mode:
Diffstat (limited to 'localadduser')
-rwxr-xr-xlocaladduser3
1 files changed, 3 insertions, 0 deletions
diff --git a/localadduser b/localadduser
index 88f424a..677131c 100755
--- a/localadduser
+++ b/localadduser
@@ -90,6 +90,9 @@ done
if getent passwd "$u" | grep -q .; then
exit1 "User \"$u\" already exists!"
fi
+if getent group "$u" | grep -q .; then
+ exit1 "Group \"$u\" already exists!"
+fi
if [ -n "$phone_area" ]; then
exit1 "Area code provided without trailing phonenumber!"