Fix user add script

This commit is contained in:
2024-06-30 18:28:00 -04:00
parent 715347a908
commit b1262c06e8

View File

@@ -40,10 +40,10 @@ if [[ -d /mnt/array/home-retired/$user ]]; then
fi
samba=0
ask_ok "Enable shared file access for user $user?" && group_str="smbgrp," && samba=1
ask_ok "Enable shared file access for user $user?" && group_str="smbgrp" && samba=1
ask_ok "Make $user an admin?" && \
group_str+="wheel"
group_str+=",wheel"
useradd_cmd+=("-G" "$group_str")
useradd_cmd+=("$user")