Samba WINS server killing NMBD process : a trick

COLLOT Jean-Yves Jean-Yves.COLLOT at cofiroute.fr
Tue Aug 6 15:56:19 GMT 2002


Hi.

I understand that rebuilding SAMBA 2.0.6 from scratch is not so easy.

If you are interested in doing something a little tricky, you may be able to
check if my hypothesis is good. 
The idea is to run NMBD interactively, and cleverly change the call argument
from "True" to "False" by modifying the right instruction directly in the
EXE file, just before actually running it.

OK, that's quite easy :

$ DEFINE DBG$PROCESS NONE
$ RUN/DEBUG SAMBA_ROOT:[BIN]NMBD
DBG>SET SCOPE NMBD_WINSSERVER
DBG>SET RAD HEX
DBG>E/INST %LINE 36680
	(Here, you should see :  BIS  R31,#X01,R16)
DBG>EVAL/ADDR %LINE 36680
	(Here, you'll have some hexadecimal value, like 0000000000xxxxx. Use
it in the following:)
DBG>DEP 0000000000xxxx = 47FF0410
DBG>E/INST %LINE 36680
	(Now, you should have BIS R31,R31,R16)
DBG>GO
....
DBG>GO

As you see, we have changed the call argument from 1 to 0 (you'll have to
believe me when I say that's what we've done...)

If NMBD works OK now and does not exit, you'll have to find out how to
rebuild NMBD from sources in order to make the change permanent...

 
-------------- next part --------------
HTML attachment scrubbed and removed


More information about the samba-vms mailing list