Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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?

share|improve this question
add comment

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.

share|improve this answer
add comment

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.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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