[Samba] No startup scripts run at all

Ilia Chipitsine ilia at paramon.ru
Sat Sep 25 13:23:38 GMT 2004


> Quoting Denis Vlasenko <vda at port.imtp.ilyichevsk.odessa.ua>:
>
>> As to original question, timekeeping problem can be nicely solved
>> by either native Windows Simple NTP (I deployed one on the job),
>> or by NTP. Last I checked their code was supporting dozens of platforms,
>> including Win. Which is a pity, code got rather ugly...
>
>
>
> I believe I didn't clearly explain my problem and the solutions have drifted
> away from what I was looking for. I used a time setting script as an example,
> however, no scripts are executed at startup. Even a simple script like:
>
> pause
>
> Setting the time would be nice but that's not my goal. Finding out why no
> scripts are executed is my goal. Here is my original post:
>
>
> 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]
> workgroup = WORKGROUP
> local master = yes
> domain master = yes
> domain logons = yes
> preferred master = yes
> 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.

what is the reason to see message regarding those scripts in _samba_ log ?
those are client side scripts, you can turn on audit on samba to see if 
that file is accessed:

------<cut here>-----
[netlogon]
    path = /home/netlogon
    valid users = @users
    write list = XXXX, YYYYY

    create mode = 0755
    force create mode = 0755
    force user = root
    directory mode = 0755
    force directory mode = 0755

    vfs objects = audit
------<cut here>------

after this you should see something like that (in log files):

Sep 25 10:18:51 sol smbd_audit[58918]: connect to service netlogon by user 
root
Sep 25 10:18:51 sol smbd_audit[58918]: open ntconfig.pol (fd 25)
Sep 25 10:18:51 sol smbd_audit[58918]: close fd 25
Sep 25 10:18:51 sol smbd_audit[58918]: open ntconfig.pol (fd 25)
Sep 25 10:18:56 sol smbd_audit[58918]: open s.bat (fd 28)
Sep 25 10:18:56 sol smbd_audit[58918]: close fd 28
Sep 25 10:18:56 sol smbd_audit[58918]: open s.bat (fd 28)
Sep 25 10:18:58 sol smbd_audit[58918]: opendir ./
Sep 25 10:18:58 sol smbd_audit[58918]: close fd 28
Sep 25 10:18:58 sol smbd_audit[58918]: open s.bat (fd 28)
Sep 25 10:18:58 sol smbd_audit[58918]: opendir ./



>
> Any ideas?
> -- 
> To unsubscribe from this list go to the following URL and read the
> instructions:  http://lists.samba.org/mailman/listinfo/samba
>


More information about the samba mailing list