I am working on SLES11 and noticed a strange thing. Whenever I try to swap a user's primary group to become it's secondary group, and assign a new primary group with usermod, it does not change. Only the primary or the secondary changes.
I am using -g and -G in the same command.
If I run the same command twice, the work is done.
Just curious if anyone knows why.