[Samba] Re:Secondary group problem in include statement

Gerald (Jerry) Carter jerry at samba.org
Fri Jan 7 15:39:26 GMT 2005


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Xavi León wrote:
| Gerald (Jerry) Carter wrote:
|
|> %g is the primary group only.  There is no variable for
|> secondary groups.
|
|
| There is a plan in the future of implementing a
| new variable to support secondary groups?
| I ask that for doing changes to my smb.conf according
| to that or search another solution to do what i want
| or leave it as now instead (now works very well, i
| only want to tune a bit more...)

The problem with having a variable for secondary groups
is that there is no single value for it to expand to.
Someone might come up with a clever patch, but its not
on any of our collective todo lists.

What you might look into is to have a perl script
or something that generates the smb.conf.%U files
each of which is something like

	include = smb.conf.group1
	include = smb.conf.group2
	....

I would probably only do this type of thing for share
definitions though.

A second option would be to have a cron job that generates
a directory full of dfs referrals based on the user's secondary
group membership.



cheers, jerry
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFB3q0uIR7qMdg1EfYRAlpeAJ9R2PVkYAxOfUs+3YKrGVzo0f/OYACeLpCu
BDDXWJrV8h2ERxRXKxp9YLY=
=xSgc
-----END PGP SIGNATURE-----


More information about the samba mailing list