Ravi Sir's Cards › AWS
usermod -G vs usermod -aG
What is a VPC: your own private network inside one AWS Region, example ThreeTierVpc 10.0.0.0/16.
Read card text
What this card says
Effect
usermod -G
Replaces all extra groups.
usermod -aG
Adds to the existing groups.
Key points
Can remove sudo by mistake.
Safe default.
Example
usermod -G docker priya
Use when
Resetting group lists.
Adding one group.