Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix removing of supplemental groups.
Need some coding as usermod -a doesn't work on all platforms. We now figure out if we are creating a user from scratch e.g. its doesn't exist at all or need to update it. For that we look at all groups the user currently is in and add the wanted groups if they are missing. This should work on all platforms as we script around and only use options available on all platforms. When we use usermod -G we supply the full list groups including any specific groups added by the sysadmin. Fixes #382: Don't remove supplemental groups on install.
- Loading branch information
Marco van Wieringen
committed
Feb 17, 2015
1 parent
4ad2aef
commit 809a0fa
Showing
1 changed file
with
70 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters