I'm preparing for the LPIC-1, exam 102, and was wondering what is the difference between these two commands with respect to options -G and -aG:
usermod -G projectA, projectB jsmithusermod -aG projectA, projectB jsmith
The user jsmith has its own default group, which is not listed above among the groups/projects.
As I understand from the man pages of usermod, in (1) jsmith is taken off the listed groups/projects. In (2), the user is appended to those groups listed after -G and this does not affect its belonging to its default group.
Do I correctly interpret the usage of these two options?