[Samba] how to run more than one logon script

Thomas Bork tombork at web.de
Tue Sep 28 15:50:59 MDT 2010


Am 28.09.2010 23:17, schrieb Leonardo Carneiro:

> Well, in theory this should work. I'll try and post here if this will
> work well. Tks in advance.

It works, you could use many combinations:

for user:
logon script = %u.bat %g %m

for group:
logon script = %g.bat %u %m

for machine:
logon script = %m.bat %u %g

for all:
logon script = logon.bat %u %g %m



For example, if you use the last possibility 'all', then in logon.bat:

REM Run user specific stuff
REM ------------------------------------
call %1.bat

REM Run group specific stuff
REM ------------------------------------
call %2.bat

REM Run machine specific stuff
REM ------------------------------------
call %3.bat

-- 
der tom


More information about the samba mailing list