I have 2 users, each has a different primary group. For user1, the primary group is group1 with GID 501. For user2, the primary group is group2 with GID 502.
/etc/passwd manually so that user1 now has GID 600.
However, I forgot to create a new group with GID 600 (and I did not edit
What's surprising me is that even though I never created a group with GID 600 (and thus there's no such group in
/etc/group)- everything works as if such a group exists:
1) After user1 creates a new file-
test.txt- User2 can't r/w that file.
2) When running
ls -l I can see that
test.txt belongs to GID 600.
What am I missing? Why does it work even though there's inconsistency between