Question: what is the difference between primary and secondary group in linux?
Answer: There are actually two types of groups — primary and secondary. The primary group is the one that's recorded in the /etc/passwd file, configured when an account is set up. ... Secondary groups are those that users might be added to once they already have accounts. Secondary group memberships show up in the /etc/group file.