[Samba] Missing Macros

Gémes Géza
Thu, 15 Jan 2004 20:09:50 -0000

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

Charles Hamel ?rta:
| I read the smb.conf manual but I can't find what I want, is there any
way to
| get the secondary group of a user using a macro ? I want to use a perl
script
| to create logon script depending on the groups of the users using the root
| preexec parameter in smb.conf, but they the primary group is always
"Domain
| users" so my script cant make the difference.
|
| Is there any way to fix this ? Thank you
|
Hi,

Check Unix group membership instead. For example with bash I'm doing
something like this:

if [ `groups $USERNAME | grep the_group_you_are_interested_in | wc -l`
- -gt 0 ]; then
.......
else
.......
fi

Good Luck!

Geza
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.3 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFABvOD/PxuIn+i1pIRAvMVAKCUzI68uf9nsCzLqgynwVVj5cvZawCgjXbe
7IHyeHi80xHmInACVs9XH/Q=uPcp
-----END PGP SIGNATURE-----