IF MEMBER OF "GROUP" THEN

Barry Smoke barry at arhosting.com
Thu Sep 27 06:16:03 GMT 2001


yes, we are using %g in the mapping of primary group based f drives, but
these scripts I want to run I don't want to base on primary group.


-----Original Message-----
From: Mike Rees [mailto:samba at glanymor.carms.sch.uk]
Sent: Thursday, September 27, 2001 5:40 AM
To: barry at arhosting.com
Subject: Re:IF MEMBER OF "GROUP" THEN


Barry

You can specify the file that is executed when a user logs on in smb.conf.

  logon script = logon.bat

This normally resides in the netlogon share on the server.

Instead of using a specific file you can pass a parameter too.

  logon script = %g.bat (This passes the primary group of the user)

So user Mr History from group teacher would execute teacher.bat and Miss
Secretary from group staff would execute staff.bat.

In our setup we first execute group scripts using the above, within this
batch
file we check for the existence of a file called user.bat(make these read
only)
in the user's home directory (after mounting it) so that we can set up
individual settings.

Try these
http://www.oreilly.com/catalog/samba/chapter/book/ch06_06.html
http://www.deschner.de/gd/dual_samba.html


Hope this helps

Mike

----- Original Message -----
From: "Barry Smoke" <barry at arhosting.com>
To: <samba at lists.samba.org>; "Lrlug-Discuss at Lrlug. Org" <lrlug-
discuss at lrlug.org>
Sent: 26 September 2001 22:06
Subject: IF MEMBER OF "GROUP" THEN


> IF MEMBER OF "GROUP" THEN
> I have seen these types of login scripts on novell servers before, but it
is
> a dos command....
> is there any way to get this type of script to work under samba?
> How does dos check to see what groups a logged in user is a member of?
> What Variables if any does samba pass to the win9x client to set these?
>
> Thanks,
> Barry Smoke
> Network Administrator
> Bryant Public Schools
>
>
> --
> To unsubscribe from this list go to the following URL and read the
> instructions:  http://lists.samba.org/mailman/listinfo/samba
>


---------------------------------------------
This message was sent using Endymion MailMan.
http://www.endymion.com/products/mailman/







More information about the samba mailing list