[Samba] login scripts do not run

Raymond Lillard rlillard at sonic.net
Thu Sep 23 02:59:21 GMT 2004


sfjoe at spamcop.net wrote:
> I have a simple script that sets the time on a Windows client at
> startup.
> The one-line script:
> net time \\myhost /set /yes
> Works perfectly well when I double-click it from Windows Explorer, so I
> don't think the problem lies there.
> 
> The relevant lines in my smb.conf file:
> 
> [global]
> time server = yes
> logon script = smbtimeset.BAT
> 
> [netlogon]
>    comment = shared scripts
>    path = /usr/share/samba/scripts
>    public = no
>    writable = no
>    browseable = no
> 
> 
> 
> I've set the log level to '3' and there aren't any messages at all
> relating to running a startup script.
> 
> Any ideas?
> 

Well, yes I do.

I was looking into this earlier today.

You don't say enough about your workgroup/domain, but I
have this problem too.  In my case, I am running v3.0.6
as a PDC.  All of my MS clients are NT4-SP6 or better
(well newer anyway).  Most are WinXP.

What I find in the event log of WinXP clients is a message
to the effect that the client has joined a NT4 domain
(in this case, my Samba PDC) and the MS NT4 generation
domain server does not support NTP.

A bit of searching has found this:

http://groups.google.com/groups?q=ntpclient+nt4-domain&hl=en&lr=&ie=UTF-8&c2coff=1&selm=%23Oa8EadWCHA.3360%40tkmsftngp11&rnum=1

This article contains two links at the bottom
which look promising too.

I'm about to start playing with it, but I would be
good to hear a Samba solution.  I don't like
hacking the registry.

Ray






More information about the samba mailing list