Consider this situation.

A user called _example is created without assigning him to any group.

A new group is manually added to /etc/group called _example without any users.

Is the _example user automatically part of _example group now or does he still need to be explicitly added to the group?

link|improve this question

71% accept rate
feedback

2 Answers

up vote 3 down vote accepted

No. Unless the user's group is set to _example (in the password file) or the user is explicitly added to the _example group in /etc/group, the user is not a member of that group.

link|improve this answer
feedback

Users must be explicitly added to any group. It is common convention to have a group for named the same as each user. The operable theory is that other users may be added to a particular user's group in an adhoc fashion allowing the user to control which files are exposed to that group.

link|improve this answer
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.