Thanks Frode. I didn't see anything in the help files about netlogon being crucial, or even what it was for !
Here's what I have so far.... (/etc/samba is where my installation has put smb.conf) So... I've created /etc/samba/netlogon and the share.. [netlogon] path = /etc/samba/netlogon browseable = No writeable = No I've created a subdirectory under netlogon named scripts and placed timesync.bat in there. In my Global section I have logon script = scripts\timesync.bat Well, it still doesn't seem to be doing anything at all when the user logs in :-( If I use the Windows Start,Run, \\ptlserver\netlogon\scripts\timesync.bat after the user has logged in it does run the batch file and sync the clock. I'm running this system purely as a file server for w2k clients, it's not in any sort of domain... is that going to make a difference ? I was hoping to automate this sync but if I can't get it to work I'll just put the batch file into the \home\masters directory and tell users to run it manually. Thanks Mike ----- Original Message ----- From: "Frode Lillerud" <[EMAIL PROTECTED]> To: "'Mike Stewart'" <[EMAIL PROTECTED]> Sent: Friday, April 30, 2004 12:27 PM Subject: RE: [Samba] Logon script, help please > The [netlogon] share is crucial when using logon-scripts. > > Add this in your smb.conf and restart samba: > [netlogon] > path = /var/lib/samba/netlogon > browseable = no > writable = no > > And since you've added 'logon script = scripts\timesync.bat' in your > global section, it means you need to copy the timesync.bat file into > /var/lib/samba/netlogon/scripts. > > Frode > > |-----Original Message----- > |From: Mike Stewart [mailto:[EMAIL PROTECTED] > |Sent: 30. april 2004 13:23 > |To: Frode Lillerud > |Subject: Re: [Samba] Logon script, help please > | > |Thanks, I'll add the pause so I can see what's happening. > | > |Netlogon share ? Ummm... I have not created one and can't see anything > in > |the Samba help about it. > | > |Mike > | > |----- Original Message ----- > |From: "Frode Lillerud" <[EMAIL PROTECTED]> > |To: "'Mike Stewart'" <[EMAIL PROTECTED]> > |Sent: Friday, April 30, 2004 12:18 PM > |Subject: RE: [Samba] Logon script, help please > | > | > |> You should add the command 'pause' to the end of your script, it's > makes > |> it easier to see if it's started. > |> > |> Have you made a [netlogon] share in your smb.conf? > |> > |> You should be able to run \\server\netlogon\login.bat from your > Windows > |> computer when everything is set up correctly. > |> > |> Frode > |> > |> |-----Original Message----- > |> |From: [EMAIL PROTECTED] [mailto:samba- > |> |[EMAIL PROTECTED] On Behalf Of Mike Stewart > |> |Sent: 30. april 2004 11:24 > |> |To: Samba > |> |Subject: [Samba] Logon script, help please > |> | > |> |Hi, > |> | > |> |I'm having trouble getting a logon script to work... > |> | > |> |I have created a DOS batch file (timesync.bat) and placed it in the > |> scripts > |> |directory of the server. > |> | > |> |The file contains only one line - net time \\ptlserver /SET /y > |> | > |> |My smb.conf "Globals" section is:- > |> | > |> |[global] > |> | workgroup = PTLTRAIN > |> | netbios name = PTLSERVER > |> | server string = Llandrindod Trainee Server > |> | encrypt passwords = Yes > |> | ssl CA certDir = /etc/ssl/certs > |> | log file = /var/log/samba.%m > |> | max log size = 50 > |> | time server = Yes > |> | load printers = No > |> | disable spoolss = Yes > |> | show add printer wizard = No > |> | logon script = scripts\timesync.bat > |> | dns proxy = No > |> | wins server = 172.16.1.50 > |> | hosts allow = 172.16.15. 127. > |> | veto files = /*.mp3/ > |> | > |> |Looking at the Samba/SWAT help file it mentions "The script must be > a > |> |relative path to the [netlogon] service" but I don't have/can't find > |> |anything to do with netlogon ! > |> | > |> |I was hoping that the file would load and run as soon as the user > |> logged in > |> |to the server but nothing seems to happen, no error message > either...am > |> I > |> |doing something wrong ? I can run the command "net time > \\ptlserver > |> /SET > |> |/y" from W2k Start/Run and it works. > |> | > |> |Using Slackware 9.0/Samba 2.2.8a > |> | > |> |Thanks > |> | > |> |Mike Stewart > |> | > |> | > |> |--- > |> |Outgoing mail is certified Virus Free. > |> |Checked by AVG anti-virus system (http://www.grisoft.com). > |> |Version: 6.0.659 / Virus Database: 423 - Release Date: 16/04/2004 > |> | > |> | > |> |-- > |> |To unsubscribe from this list go to the following URL and read the > |> |instructions: http://lists.samba.org/mailman/listinfo/samba > |> > |> > |> > | > | > |--- > |Outgoing mail is certified Virus Free. > |Checked by AVG anti-virus system (http://www.grisoft.com). > |Version: 6.0.659 / Virus Database: 423 - Release Date: 16/04/2004 > > > --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.659 / Virus Database: 423 - Release Date: 16/04/2004 -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba