I'm user user
and my primary group is user
. If I change my primary group to primary_group
, all of the files owned by me are suddenly owned by primary_group
.
This was unexpected to me. If group user
owns a file and I don't change file ownership, I don't expect the group ownership to change.
What other common pitfalls with regards to this are there?
Edited
I changed the primary group by using usermod -g primary_group user
. I checked and this changed the integer identifier, it's not simply a naming issue.
pw groupmod -n
andpw usermod -g
are two quite different things.usermod
.