Incorrect batch files accessed

John Ryan john at kgv.net
Mon Dec 4 03:00:44 GMT 2000


Hi,

I've noticed a problem since about samba 2.0.5. The machine is running 
FreeBSD4.x and has soft-updates enabled. It's now running 2.0.7 from the 
FreeBSD ports.
I've got a perl script that generates a batch file depending on machine name.

Occasionally, a machine will read the wrong batch file. The following example 
shows it reading one batch file, then switching to another batch file during 
the login. The machine involved is k3-19, but it suddenly starts reading g1-
09.

[2000/12/01 08:57:45, 2] smbd/open.c:open_file(602)
  john opened file bat/startup-k3-19.bat read=Yes write=No (numopen=1)
[2000/12/01 08:57:45, 2] locking/locking_shm.c:shm_del_share_mode(355)
  del_share_modes Deleting share mode entry dev=20d06 ino=344266
[2000/12/01 08:57:45, 2] locking/locking_shm.c:shm_del_share_mode(376)
  del_share_modes num entries = 0, deleting share_mode dev=20d06 ino=344266
[2000/12/01 08:57:45, 2] smbd/close.c:close_normal_file(159)
  john closed file bat/startup-k3-19.bat (numopen=0)
[2000/12/01 08:57:46, 2] smbd/open.c:open_file(602)
  john opened file bat/startup-g1-09.bat read=Yes write=No (numopen=1)
[2000/12/01 08:57:46, 2] locking/locking_shm.c:shm_del_share_mode(355)
  del_share_modes Deleting share mode entry dev=20d06 ino=341782
[2000/12/01 08:57:46, 2] locking/locking_shm.c:shm_del_share_mode(376)
  del_share_modes num entries = 0, deleting share_mode dev=20d06 ino=341782
[2000/12/01 08:57:46, 2] smbd/close.c:close_normal_file(159)

The netlogon share from my smb.conf looks like:

[netlogon]
        comment = Network Logon Share
        path = /usr/local/share/netlogon
        guest ok = Yes
        write list = @sys
        locking = No
        oplocks = No
        create mask = 0664
        directory mask = 2775
        force create mode = 0664
        force directory mode = 2775
        root preexec = /usr/local/bin/lg %U %m

I won't put the perl script here as it's too long.

Can anyone help?
John Ryan
King George V School
Hong Kong




More information about the samba mailing list