**Fwd: RE: RE: Samba WINS server killing NMBD process : a trick

Alder ue191 at victoria.tc.ca
Thu Aug 8 01:40:38 GMT 2002


[Sorry about the quoting here, my mail client stopped working properly]

Jean-Yves COLLOT wrote:

I guess there is another reason now for exiting. Could be some NMBD.PID 
file in the [VAR.LOCKS] area. Please check in the NMB.LOG (or NMBD.LOG, 
I don't remember) which is somewhere in the SAMBA_ROOT:[VAR] directory 
if it displays the reason why it exited this time, and delete this 
NMBD.PID file if any, before retrying the DEBUG stuff.
There were no PID files stranded in the [.VAR.LOCKS] directory, and the 
NMB.LOG file still says nothing about why it is shutting down.

 
Note that now that you have the address of the instruction, you can skip 
the EXAMINE commands, and directly type :

DBG> DEP 43A58 = 47FF0410
DBG> GO
DBG> GO

...Still exits after this :-(

If it goes on exiting (which I doubt, but who knows ?), could you try this :

- Delete the WINS.DAT file that should be in the SAMBA_ROOT:[VAR.LOCKS] 
directory,

- Start NBMD from your terminal like this :

$ MC SAMBA_ROOT:[BIN]NMBD -d 5 -l TT:
[snip other good stuff]

The last message displayed after I give this command says the service 
shuts down because there is no WINS.DAT file:

[2002/08/07 17:18:21, 2] CMS_ROOT:[SAMBA.SOURCE.NMBD]NMBD_SUBNETDB.C;2:(195)
  making subnet name:WINS_SERVER_SUBNET Broadcast address:0.0.0.0 Subnet 
mask:0.0.0.0
[2002/08/07 17:18:21, 2] 
CMS_ROOT:[SAMBA.SOURCE.NMBD]NMBD_WINSSERVER.C;2:(192)
  initialise_wins: Can't open wins database file 
/samba_root/var/locks/wins.dat.
 Error was no such file or directory

Not too surprising since I just deleted it, but I checked and a new 
WINS.DAT file is created in the [VAR] directory sometime before the 
process stops and returns me to the $ prompt.  I ran the MC command a 
second time with the WINS.DAT file present, and this time the last line 
displayed before the $ prompt returns is:

[2002/08/07 17:55:36, 2] CMS_ROOT:[SAMBA.SOURCE.NMBD]NMBD_SUBNETDB.C;2:(195)
  making subnet name:WINS_SERVER_SUBNET Broadcast address:0.0.0.0 Subnet 
mask:0.0.0.0

The complete output of second MC command is at the bottom of this post.

In another random attempt at finding the cause, I did SHOW SYSTEM 
repeatedly while the NMBD process was going through its death throes.  
ISZKAZ is a W2K system and the local browse master. Is it because ISZKAZ 
is the local browse master that I see this process during NMBD startup? 
Could it be killing NMBD?

...t1
0000016C NMBD 2.0.6      LEF      5      900   0 00:00:00.88       
437    248
0000016D SMBD_BG1158     PFW      5      794   0 00:00:00.82       
374    282  N
...t2
0000016C NMBD 2.0.6      LEF      5      900   0 00:00:00.88       
437    248
0000016D SMB_ iszkaz016D LEF      4     2053   0 00:00:01.99       
417    338  N
...t3
0000016C NMBD 2.0.6      LEF      5      901   0 00:00:00.88       
441    248
0000016D SMB_ iszkaz016D LEF      4     2053   0 00:00:01.99       
417    338  N
...t4
<nmbd now gone>
0000016D SMB_ iszkaz016D LEF      4     2053   0 00:00:01.99       
417    338  N

-----------------------------------------------------------------------

I also ran an audit to see if any object access violations occurred 
during this process.

    $ ANALYZE/AUDIT/SINCE=TODAY/FULL SYS$MANAGER:SECURITY.AUDIT$JOURNAL

There were no violations associated with the activities discussed here.  
Perhaps, though, it would be helpful if someone could confirm that the 
security settings for the [VAR] directory and its contents are correct.  
Here they are:

$ SHOW SECURITY VAR.DIR
SYS$SYSDEVICE:[SAMBA_ROOT]VAR.DIR;1 object of class FILE
     Owner: [SYSTEM]
     Protection: (System: RWE, Owner: RWE, Group: RE, World: RWE)
     Access Control List: <empty>

SYS$SYSDEVICE:[SAMBA_ROOT.VAR]LOCKS.DIR;1 object of class FILE
     Owner: [SYSTEM]
     Protection: (System: RWE, Owner: RWE, Group: RE, World: RE)
     Access Control List: <empty>
 
SYS$SYSDEVICE:[SAMBA_ROOT.VAR]NMBD.OUT;6 object of class FILE
     Owner: [SYSTEM]
     Protection: (System: RWED, Owner: RWED, Group: RE, World)
     Access Control List: <empty>
 
SYS$SYSDEVICE:[SAMBA_ROOT.VAR]PRIVATE.DIR;1 object of class FILE
     Owner: [SYSTEM]
     Protection: (System: RWE, Owner: RWE, Group: RE, World)
     Access Control List: <empty>
 
SYS$SYSDEVICE:[SAMBA_ROOT.VAR]SMB.LOG;1 object of class FILE
     Owner: [SYSTEM]
     Protection: (System: RWED, Owner: RWED, Group: RE, World)
     Access Control List: <empty>

$ SHOW SECURITY [-.VAR.LOCKS]*.*
SYS$SYSDEVICE:[SAMBA_ROOT.VAR.LOCKS]BROWSE.DAT;1 object of class FILE
     Owner: [SYSTEM]
     Protection: (System: RWED, Owner: RWED, Group: RE, World)
     Access Control List: <empty>
 
SYS$SYSDEVICE:[SAMBA_ROOT.VAR.LOCKS]WINS.DAT;1 object of class FILE
     Owner: [SYSTEM]
     Protection: (System: RWED, Owner: RWED, Group: RE, World)
     Access Control List: <empty>

-----------------------------------------------------------------------
Complete results from running the suggested MC command:

$ MC SAMBA_ROOT:[BIN]NMBD.EXE_AXP -d 5 -l TT:
[2002/08/07 17:55:36, 1] CMS_ROOT:[SAMBA.SOURCE.NMBD]NMBD.C;2:(747)
  Netbios nameserver version 2.0.6 started.
  Copyright Andrew Tridgell 1994-1998
[2002/08/07 17:55:36, 3] CMS_ROOT:[SAMBA.SOURCE.PARAM]LOADPARM.C;2:(867)
  Initialising global parameters
[2002/08/07 17:55:36, 3] CMS_ROOT:[SAMBA.SOURCE.PARAM]PARAMS.C;1:(538)
  params.c:pm_process() - Processing configuration file 
"SAMBA_ROOT/LIB/SMB.CONF"
[2002/08/07 17:55:36, 3] CMS_ROOT:[SAMBA.SOURCE.PARAM]LOADPARM.C;2:(2283)
  Processing section "[global]"
  doing parameter netbios name = SZEGED
  doing parameter server string = OpenVMS AXP 7.2 (Samba %v on %L)
  doing parameter workgroup = EREBUS
  doing parameter wins support = yes
  doing parameter name resolve order = wins lmhosts host bcast
  doing parameter local master = no
  doing parameter preferred master = no
  doing parameter lm announce = auto
  doing parameter lm interval = 300
  doing parameter default service = default
  doing parameter guest account = SAMBA__GUEST
  doing parameter security = user
  doing parameter encrypt passwords = yes
  doing parameter hosts deny = ALL EXCEPT 192.168.0. 127.
  doing parameter socket options = SO_RCVBUF=8192 SO_SNDBUF=8192 
SO_KEEPALIVE TCP_NODELAY
  doing parameter interfaces = 192.168.0.3/24
  doing parameter lock directory = /samba_root/var/locks
  doing parameter log level = 2
[2002/08/07 17:55:36, 0] CMS_ROOT:[SAMBA.SOURCE.NMBD]NMBD.C;2:(772)
  standard input is not a socket, assuming -D option
[2002/08/07 17:55:36, 2] CMS_ROOT:[SAMBA.SOURCE.NMBD]NMBD.C;2:(778)
  Becoming a daemon.
[2002/08/07 17:55:36, 2] CMS_ROOT:[SAMBA_VMS.SOURCE.LIB]INTERFACE.C;1:(83)
  added interface ip=192.168.0.3 bcast=192.168.0.255 nmask=255.255.255.0
[2002/08/07 17:55:36, 2] CMS_ROOT:[SAMBA.SOURCE.NMBD]NMBD_SUBNETDB.C;2:(195)
  making subnet name:192.168.0.3 Broadcast address:192.168.0.255 Subnet 
mask:255.255.255.0
[2002/08/07 17:55:36, 2] CMS_ROOT:[SAMBA.SOURCE.NMBD]NMBD_SUBNETDB.C;2:(195)
  making subnet name:UNICAST_SUBNET Broadcast address:192.168.0.3 Subnet 
mask:192.168.0.3
[2002/08/07 17:55:36, 2] CMS_ROOT:[SAMBA.SOURCE.NMBD]NMBD_SUBNETDB.C;2:(195)
  making subnet name:REMOTE_BROADCAST_SUBNET Broadcast address:0.0.0.0 
Subnet ma
sk:0.0.0.0
[2002/08/07 17:55:36, 2] CMS_ROOT:[SAMBA.SOURCE.NMBD]NMBD_SUBNETDB.C;2:(195)
  making subnet name:WINS_SERVER_SUBNET Broadcast address:0.0.0.0 Subnet 
mask:0.0.0.0
$





More information about the samba-vms mailing list