👩💻 Join our community of thousands of amazing developers!
This is one of those things that I found out the hard way long long ago. When using the usermod command in Linux to add additional groups if you want to only list the new groups the user is in you must use the -aG flags rather than a simple -G. When specifying -G by itself you are telling usermod to change the users additional groups to the groups specified and only those groups....