This is a discussion on Re: Dynamic groups (was Samba and groups > 16) - Samba ; Edgar, Bob wrote: > Forgive my naivety but what is wrong with the following: > > try to open/create the file/directory > if EACCESS { > foreach group in longlist { > addgroup to groups list > try to open/create ...
Edgar, Bob wrote:
> Forgive my naivety but what is wrong with the following:
>
> try to open/create the file/directory
> if EACCESS {
> foreach group in longlist {
> addgroup to groups list
> try to open/create the file/directory
> if success break
> }
> if failure return EACCESS
> }
>
> The OS is responsible for the permission checking as always,
> the typical case has no additional overhead, and if the groups
> list isn't stupidly long the extra time is minimal.
Alas, the list may be **quite** long, if the site is using
groups the way MS suggests they do.
--dave
--
David Collier-Brown, | Always do right. This will gratify
Sun Microsystems, Toronto | some people and astonish the rest
davecb@canada.sun.com | -- Mark Twain