linux-admin.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Recursive groups anyone?
@ 2002-09-13 11:17 Paul Furness
  2002-09-13 14:53 ` Glynn Clements
  2002-09-13 16:10 ` Jamie Harris
  0 siblings, 2 replies; 7+ messages in thread
From: Paul Furness @ 2002-09-13 11:17 UTC (permalink / raw)
  To: admin

Hi.

I just spent a good hour scouring the Internet for this, and came up
with a blank. Maybe someone on here has an answer...

I'm looking to do something that is conceptually very simple: I want to
create recursive entries in linux groups so that I can make groups
members of other groups. For example:

group1:x:1000:paul,matt,dave
group2:x:1001:karen,sally,tara
biggroup:x:1002:bossman,lampyman,group1,group2

I'm pretty sure that you can't do this normally, but _someone_ must have
wanted to do this before. Does anyone know of any way of making this
happen? If so, are there any good security reasons not to do it?

Presumably, this is not a function of the file system (be it ext3,
reiserfs, xfs or whatever) but rather the security modules in the
kernel.

What actually looks up group membership when you try and read a file?
Does anyone have any thoughts on the ease (or not)  of hacking that part
of the kernel?

Similar code already exists in sendmail and similar for mail groups.
Hmm, I wonder how portable that might be?


Another problem (which is a separate thing, I guess) is that if I change
the group membership of someone, they have to log out and back in again
to get their new groups showing. Does anyone know how to make this
dynamic?

I suppose another approach might be to write a front-end script that
manipulates the group file (it's shared using NIS so I only have to do
it one place) and allows me to easily manage group memberships and make
people members of many, many groups (typically people are already in 5
or so groups.) I _could_ create a group for each group of files and then
add people to all the groups they need access to, but that's bloody
complicated to keep track of! Groups in groups would be _so_ much
easier. Also, this still doesn't prevent the logging out / in thing.



All the file systems are used by people over NFS, so there might also be
a way of doing this at the NFS level, but I think that may be slower and
I'd rather it worked on local file systems as well. This would, however,
probably be dynamic so I could change memberships on the fly....


Any ideas anyone?

Paul.


-- 
Paul Furness

Systems Manager

2+2=5 for extremely large values of 2.


^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2002-09-14 14:31 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-09-13 11:17 Recursive groups anyone? Paul Furness
2002-09-13 14:53 ` Glynn Clements
2002-09-14  7:53   ` Paul Furness
2002-09-14 14:24     ` Glynn Clements
2002-09-13 16:10 ` Jamie Harris
2002-09-14  7:39   ` Paul Furness
2002-09-14 14:31     ` Glynn Clements

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).