$ ./guess_the_languageLinux CLI
Linux CLI · hard · #57

Why is this command risky compared with usermod -aG docker alice?

sudo usermod -G docker alice
  1. It drops alice from her other groups
  2. It makes docker alice's primary group
  3. It locks alice's password until reset
  4. It deletes the docker group's members
Without -a, -G replaces the supplementary group list instead of appending to it.
Play Linux CLI ▸