[Samba] Logon script based on group

Gémes Géza geza at kzsdabas.sulinet.hu
Tue Nov 4 18:34:11 GMT 2003


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

royotto at c2i.net írta:
| Hi there
|
| Is it possible to have a logon script that checks which groups the
users are a part of and then runs a logon script based on that? I've
tried %G.bat but it doesn't work, %U.bat works though, but that's not
what I want
|
| Thanks in advance
| Roy
|
| -------------------------------------------------
| WebMail fra Tele2 http://www.tele2.no
| -------------------------------------------------
|
I would suggest to try a dinamicaly generated logon script, with
specifying in your netlogon share root preexec = logonscriptgenerator,
root postexec = remove all logon scripts
and in logonscriptgenerator you could check for UNIX group membership,
e.g. with getent group | grep username ....

Good Luck!

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

iD8DBQE/p/Ej/PxuIn+i1pIRAmuzAKCYW+BL2FzCZCJhfwqLOLB2HH2h5wCdHVtO
Z23i39dk8DgFWHwkit22xYo=
=IGnp
-----END PGP SIGNATURE-----




More information about the samba mailing list