[Samba] Why does this logon-script not work under Win9x ?

Mathias Homann admin at eregion.de
Tue Aug 13 11:51:00 GMT 2002


Am Montag, 12. August 2002 16:50 schrieb Michiel_Lange at actuera.nl:
> You might want to check out where the execution stops. I've encountered
> hanging netlogon scripts in the past, which ran fine after some time like
> miraculously... but I saw the very long variable-names.. that might be a
> problem...?


at my setup I have a very simple logon script which I (re)named to LOGON.BAT 
following the uppercase hints earlier in this thread. the logon script 
parameter points to the very same file name.
Having set a loglevel of 2 I see the following in log.smb:

[2002/08/13 22:24:07, 1] smbd/service.c:make_connection(651)
  pippin (192.168.238.252) connect to service netlogon as user nicole 
(uid=1003,
 gid=500) (pid 9081)
[2002/08/13 22:24:07, 2] smbd/open.c:open_file(233)
  NICOLE HOMANN opened file LOGON.BAT read=Yes write=No (numopen=1)
[2002/08/13 22:24:07, 2] smbd/close.c:close_normal_file(213)
  nicole closed file LOGON.BAT (numopen=0) 
[2002/08/13 22:24:07, 2] smbd/open.c:open_file(233)
  NICOLE HOMANN opened file LOGON.BAT read=Yes write=No (numopen=1)
[2002/08/13 22:24:07, 2] smbd/close.c:close_normal_file(213)
  nicole closed file LOGON.BAT (numopen=0) 
[2002/08/13 22:24:07, 1] smbd/service.c:close_cnum(692)
  pippin (192.168.238.252) closed connection to service netlogon


but the script is not executed. I dont get the possibility to see any 
output... the script contains a pause command at the very end which is not 
reached.
After inserting pause commands every other line I find that the script stops 
at the very first 'net' command which is a 'net use * /del /yes' to re-set 
any previous connections.

When I browse to the netlogon folder and run the script from there it runs 
fine... 

any idea?

(besides migrating the machine in question to Win2k which wouldn't be much fun 
on a celeron 366 with 160megs ram...)

bye,
[MH]



More information about the samba mailing list