Skip to content
This repository has been archived by the owner on Nov 8, 2021. It is now read-only.

Commit

Permalink
Add the user to the supplementary group(s), without deleting the user…
Browse files Browse the repository at this point in the history
… from other groups an admin added this user to. Fixes #56 (#57)
  • Loading branch information
mvanbaak authored and michaelwittig committed May 23, 2017
1 parent 0e1a6d1 commit 9ea9c41
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion import_users.sh
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ function create_or_update_local_user() {
id "${username}" >/dev/null 2>&1 \
|| ${USERADD_PROGRAM} ${USERADD_ARGS} "${username}" \
&& /bin/chown -R "${username}:${username}" "$(eval echo ~$username)"
/usr/sbin/usermod -G "${localusergroups}" "${username}"
/usr/sbin/usermod -a -G "${localusergroups}" "${username}"

# Should we add this user to sudo ?
if [[ ! -z "${SUDOERSGROUP}" ]]
Expand Down

0 comments on commit 9ea9c41

Please sign in to comment.