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

Simo Sorce simo.sorce at polimi.it
Fri Feb 16 11:04:36 GMT 2001


On Fri, 16 Feb 2001, Richard Sharpe wrote:

> 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.


What about a setuid 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
>
>
>
>

-- 
Simo Sorce - Linux Systems Consultant
E-mail: simo.sorce at polimi.it
Tel: +39 0348 7149179 - Fax: +39 02 700442399
-----------------------------------------------------------------
Be happy, use Linux!





More information about the samba-technical mailing list