[Samba] Multiple Login scripts
tombork at web.de
Wed Nov 16 01:10:08 GMT 2005
Julian Pilfold-Bagwell wrote:
> I have several rooms each with a printer, and nearly a thousand users divided
> into two main groups - pupils and teachers who change rooms on a routine
> basis. Is it possible to set up multiple login scripts that would be executed
> in sequence i.e. run by user is %u, and machine is %m is it possible to say
> run %u to set up shares followed by %m to set up the right printers for the
> room their in?
How about something like
and a %u.bat ending with
which calls %m.bat?
You can easyly extend this, for example:
logonscript="%g.bat %u %m"
for calling first the group batch %g.bat for the groups pupils and
teachers, then at the end from %g.bat you are calling first the user
batch %u.bat with
and then the machine batch %m.bat with
Nothing special is needed, no kixstart or perl scripting.
More information about the samba