Bluehost.com Web Hosting $6.95

Re: [Samba] Multiple Login scripts

This is a discussion on Re: [Samba] Multiple Login scripts within the Samba forums, part of the Networking and Network Related category; Julian Pilfold-Bagwell wrote: > I have several rooms each with a printer, and nearly a thousand users divided > ...


Go Back   Usenet Forums > Networking and Network Related > Samba

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 11-16-2005
Thomas Bork
 
Posts: n/a
Default Re: [Samba] Multiple Login scripts

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 With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT +1. The time now is 08:33 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0