Last active
August 29, 2015 14:25
-
-
Save yradunchev/8216b05752fe9ed022bd to your computer and use it in GitHub Desktop.
add user to multiple groups
This file contains hidden or 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
| for i in `grep -E grp[_a-z]+_aa /etc/group|cut -f1 -d:` ; do usermod-A $i username; done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment