libsmbclient and browsing NT and Win9X workgroups: Evidence of bad things

Richard Sharpe sharpe at ns.aus.com
Fri Feb 16 02:16:42 GMT 2001


At 12:16 PM 2/16/01 +1100, Andrew Tridgell wrote:
>Richard,
>> 2. If the right version of nmbd is not running (which we should be able to
>> detect by trying to init tdb), then install our own port 138 listener that
>> simply throws all incoming port 138 packets into the unexpected TDB ...
>> Should time those entries out after a while as well.  This listener will
>> have to run SUID root. It would be started up by smbc_init if we can't do a
>> TDB init.
>
>no, that's too ugly and would mean that restarting nmbd would not be
>reliable as some client prog could grab the port before we restart.

Oh dear. You are right ... Damn ... We have to insist on nmbd!

Hmmmm, if nmbd is not running when the user does an smbc_init, things are
not likely to be reliable ... so we must start nmbd, which means that I
need an SUID wrapper to start nmbd.

>Cheers, Tridge


Regards
-------
Richard Sharpe, sharpe at ns.aus.com
Samba (Team member, www.samba.org), Ethereal (Team member, www.ethereal.com)
Contributing author, SAMS Teach Yourself Samba in 24 Hours
Author, Special Edition, Using Samba






More information about the samba-technical mailing list