Share list based on primary group

Gary Algier gaa at
Tue Nov 14 21:18:48 GMT 2000

Yes, use:
	Include = /etc/samba/smb.%L.%G

However, %G is the primary group.  (This is the group number in /etc/passwd).
You can't control based upon secondary groups.  It would need to
try each group in turn, or something like that, so it is not supported.

I think is says something in the documentation that %g is not "known"
at this time.  It only gets resolved after authentication.

Mike Fedyk wrote:
> Hi,
> I am trying to have differing shares available for different groups.
> I tried...
>  ;;;;;Config based on name
>    Include = /etc/samba/smb.%L.%g
> then I realized that %g was empty when called at this point for a browse list.
> In the config file, it doesn't exclude %g at this point for "include" or "config
> file".  Is there a workarround?
> --
> Mike Fedyk                   "They that can give up essential liberty
> Information Systems           to obtain a little temporary safety
> Match Mail Productions Inc.   deserve neither liberty nor safety."
> mfedyk at                                   Ben Franklin

Gary Algier, WB2FWZ       gary.algier at           +1 856 787 2758
Ulticom Inc., 1020 Briggs Rd, Mt. Laurel, NJ 08054      Fax:+1 856 866 2033

            This space intentionally left blank by the censors.

More information about the samba mailing list