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

logonscript="%u.bat %m"

and a %u.bat ending with

call %1.bat

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

call %1.bat

and then the machine batch %m.bat with

call %2.bat

Nothing special is needed, no kixstart or perl scripting.



der tom
--
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/listinfo/samba

Reply via email to