[Samba] Missing Macros

Gémes Géza geza at kzsdabas.sulinet.hu
Thu Jan 15 20:09:39 GMT 2004


-----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-----



More information about the samba mailing list