/etc/group groups inside of groups?

/etc/group groups inside of groups?

Post by Garry Garre » Fri, 30 Jun 1995 04:00:00



I seem to remember at my old company having groups inside of groups,
at least for NIS.

My new company isn't using NIS.  I don't really have a test machine
I can play with, so I'm hoping that someone out there can answer
this for me:  can I have groups within groups in /etc/group?

For example:

a::1000:user1,user2,user3
b::2000:user1,user4,user5
c::3000:a,b

Will group c have user1,user2,user3,user4,user5?
(I assume the duplication of user1 will not cause it to be added twice)

Thanks!

--

(don't send big files here, write me for another address)  ._o
*** I don't speak for ABI Inc.                               |>
*** I get into enough trouble speaking for myself!           4

 
 
 

/etc/group groups inside of groups?

Post by Richard P. Baint » Fri, 07 Jul 1995 04:00:00




>I seem to remember at my old company having groups inside of groups,
>at least for NIS.

Hmmm. I've never seen this except with netgroups. The work around I've
always seen was:

Quote:>a::1000:user1,user2,user3
>b::1000:user1,user4,user5

This means that group 1000 will have user1, user1, user2, user3, user4,
user5. And if group 1000 is the default gid for any user, they will show
up again. (This is from my experience of the groups command, of course it
doesn't really matter.)

Ciao,

--
Richard Bainter          Mundanely     |    System Analyst        - OMG/CSD
Pug                      Generally     |    Applied Research Labs - U.Texas

Note: The views may not reflect my employers, or even my own for that matter.

 
 
 

/etc/group groups inside of groups?

Post by Ken Robso » Sat, 08 Jul 1995 04:00:00


Hi,

I think you are thinking of netgroups, a function of NIS.  Look at the
documentation for NIS  to understand how to create and utilise netgroups.

Thanks,

Ken.




>>I seem to remember at my old company having groups inside of groups,
>>at least for NIS.

>Hmmm. I've never seen this except with netgroups. The work around I've
>always seen was:

>>a::1000:user1,user2,user3
>>b::1000:user1,user4,user5

>This means that group 1000 will have user1, user1, user2, user3, user4,
>user5. And if group 1000 is the default gid for any user, they will show
>up again. (This is from my experience of the groups command, of course it
>doesn't really matter.)

>Ciao,

>--
>Richard Bainter          Mundanely     |    System Analyst        - OMG/CSD
>Pug                      Generally     |    Applied Research Labs - U.Texas

>Note: The views may not reflect my employers, or even my own for that matter.

 
 
 

1. GROUPS CONTAINING OTHER GROUPS (/etc/group)

Is there a way to do something like the following:

/etc/group
----------------
staff:*:10:
student:*:20:
staff+student:*:staff,student
guest:*:40:

That is, I'd like to be able to create a file
owned by "staff+student".  Then users in the "staff"
group or in the "student" group could access the
file.  But users in "guest" could not access the file.

Jeff Rodriguez

2. Fix error handling in sysfs registration

3. cannot set up UMASK or groups so that users from one group cannot access other groups

4. More than 8 LUN-selectable CD-ROM drives?

5. grouping a group to a group?

6. Setting up Lesstif

7. Keeping groups, groups and groups straight

8. Installation Problems

9. user and group management - how to emulate groups into groups in linux ?

10. redefining group id's in /etc/group ???

11. Huge group (/etc/group)

12. manually delting group from /etc/group

13. Adding root to groups in /etc/group - why?