Created
July 9, 2015 11:51
-
-
Save christiaan-janssen/d394cfb0b3ca03e3539a to your computer and use it in GitHub Desktop.
Find users and add them to a group
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 user in `cat /etc/passwd | grep '._it' | cut -f1 -d':'` | |
do | |
`usermod -a -G www-data $user` | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment