[Samba] SAMBA problem

John H Terpstra jht at samba.org
Tue Dec 10 18:10:01 GMT 2002


On Tue, 10 Dec 2002, Mohammad Noman wrote:

>  This is what i did to run a samba file server on linux.  I installed
>  liux 8.0 server installation (all packages, selecting security to be
>  medium, no firewalls).  After linux was installed i checked samba was
>  already installed along with it.  I created user accounts and port them
>  to samba,created smb.conf (and directories to access through samba like
>  public).
>
>  i understand that linux box is somehow rejecting the connection when
> windows tries to connect it.  But I couldn't find any instructions on
> how to enable port 137 and 139 for samba.  Only thing i find is to run
> smbd -D and nmbd -D. This is what i see if i run netstat -a.

This is interesting, but does not help. When logged in as root what is the
output of:
	iptables -L -v

- John T.

>
> [root at terran samba]# netstat -a
> Active Internet connections (servers and established)
> Proto Recv-Q Send-Q Local Address           Foreign Address         State
> tcp        0      0 *:32768                 *:*                     LISTEN
> tcp        0      0 localhost.localdo:32867 *:*                     LISTEN
> tcp        0      0 *:printer               *:*                     LISTEN
> tcp        0      0 *:netbios-ssn           *:*                     LISTEN
> tcp        0      0 *:9099                  *:*                     LISTEN
> tcp        0      0 *:sunrpc                *:*                     LISTEN
> tcp        0      0 *:x11                   *:*                     LISTEN
> tcp        0      0 *:ftp                   *:*                     LISTEN
> tcp        0      0 localhost.localdom:8118 *:*                     LISTEN
> tcp        0      0 *:ssh                   *:*                     LISTEN
> tcp        0      0 *:telnet                *:*                     LISTEN
> tcp        0      0 localhost.localdom:smtp *:*                     LISTEN
> udp        0      0 *:32768                 *:*
> udp        0      0 terran:netbios-ns       *:*
> udp        0      0 *:netbios-ns            *:*
> udp        0      0 terran:netbios-dgm      *:*
> udp        0      0 *:netbios-dgm           *:*
> udp        0      0 *:bootpc                *:*
> udp        0      0 *:sunrpc                *:*
>
>
>  --- On Tue 12/10, Joel Hammer  wrote:From: Joel Hammer [mailto: Joel at HammersHome.com]To: mnh1 at hotmail.com, samba at lists.samba.orgDate: Tue, 10 Dec 2002 00:22:30 -0500Subject: Re: [Samba] SAMBA problemYou need to make sure the firewall on your linux machine is not blocking
> those ports. So, what is the fireall on your linux machine doing?
>
> Joel
>
> On Tue, Dec 10, 2002 at 04:09:23AM +0000, Mohammad Noman Hameed wrote:
> > by both demons i meant smbd and nmbd, i do not have firewall selected in
> > windows xp machine.
> > i checked in etc/services and it has the necessary lines.
> >
> > netbios-ns      137/udp     #NETBIOS Name Service
> > netbios-dgm     138/udp     #NETBIOS Datagram Service
> > netbios-ssn     139/tcp     #NETBIOS Session Service
> > microsoft-ds    445/udp     #Direct-Hosted Service
> > microsoft-ds    445/tcp     #Direct-Hosted Service
> >
> > is there anything that needs to be done on windows part to enable 137 and
> > 139 port?
> >
> > Thanks,
> >
> > Mohammad Hameed
> >
> >
> >
> >
> >
> > _________________________________________________________________
> > Add photos to your messages with MSN 8. Get 2 months FREE*.
> > http://join.msn.com/?page=features/featuredemail
> >
>

-- 
John H Terpstra
Email: jht at samba.org



More information about the samba mailing list