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 -------------------------------------------------
load down ifmember.exe from microsoft include this in netlogon script and with a few lines on the batch you can revoke action if a user is member of a group at login Best Regards ----- Original Message ----- From: <royotto@c2i.net> To: <samba@lists.samba.org> Sent: Tuesday, November 04, 2003 2:15 PM Subject: [Samba] Logon script based on group> Hi there > > Is it possible to have a logon script that checks which groups the usersare 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 > ------------------------------------------------- > > -- > To unsubscribe from this list go to the following URL and read the > instructions: http://lists.samba.org/mailman/listinfo/samba >
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 royotto@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-----