Users and groups

Hi,

Is it possible that one user belongs to many groups, or the relation of user/group is 1/1?. Thanks

Ram�n

It depends or your version of Unix. Originally, it was one group at a time and you used the newgrp command to switch groups as needed. BSD introduced the concept of one user being in many groups at once. This is a better way of doing things and it caught on. Most versions of Unix have adopted it. HP-UX actually supports both techniques, depending on how you configure it. If you post your version of unix, we may be able to give you a more definitive answer.

In Solaris, a user can belong to multiple groups: 1 primary group and 15 secondary groups by default. However, the number of groups a person can belong to is set by the kernel parameter called NGROUPS_MAX located in the /etc/system file. You can modify this parameter to allow for a MAX of 32 groups.

Again, this applies to Solaris. not sure how other flavors handle this.