Re: Dynamic groups (was Samba and groups > 16)
-----BEGIN PGP SIGNED MESSAGE-----
David Collier-Brown wrote:
| Actually I'd expect to use the group of the file: assume
| I'm uid=57957(davecb) gid=10(staff) groups=10(staff),100(pwrtl)
| and for simplicity, the maximum number of groups I can have
| is two (;-)).
| I try to read /tmp/foo via samba, but the open fails with EACCES.
| A stat of the file returns
| -rw-r--r-- 1 n1sps n1sps 0 Mar 7 12:45 /tmp/foo
| Samba looks in my long list of (AD) groups, finds n1sps, sees
| it is NOT in my active groups list and substitutes it for pwrtl.
| It then retries, and if it's a read request succeeds. If it's
| a write request it gets EACCESS again, but this time I'm already
| in the right group, so samba returns -1, errno=EACCESS.
Why can't we get Sun to fix their broken OS ?
But I would expect the proposed solution to slow things down
a good bit. But then again if you are on a broken system,
slow is better than not at all I guess.
Jeremy's right. It's an interesting approach (like a manual newgrp),
but I'm not writing the patch.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.5 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - [url]http://enigmail.mozdev.org[/url]
-----END PGP SIGNATURE-----