[Samba] netlogon scripts for machines / groups - possible?
robert at ruegner.org
Thu Nov 4 23:26:41 GMT 2004
Tomasz Chmielewski schrieb:
> I use Samba 3 as a PDC.
> When a user logs in, a user-specific script is executed for him/her, as
> stated in smb.conf:
> logon script = %U.bat
> This is handy when it comes to do some minor tweaks, but can become pain
> when one have to do bigger changes.
> Is it possible to execute also a "machine script" (for installing
> software etc.), and "group script" (users belonging to a certain group
> should have specific settings applied)?
> I was thinking of something like:
> logon script = %U.bat - now it's executed for a user
> machine logon script = %m.bat
> group logon script = %g.bat
you can user ifmember.exe with a default.bat for groups,
and parse the host name in default bat to to do other stuff
this runs very nice and will give you the features you desire
More information about the samba