Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 30 Nov 2002 17:34:31 -0500
From:      Tim Kellers <timothyk@wallnet.com>
To:        stacey@vickiandstacey.com, chip wiegand <chip@wiegand.org>
Cc:        FreeBSD Questions <freebsd-questions@freebsd.org>
Subject:   Re: samba fails - port already in use problem
Message-ID:  <200211301734.31685.timothyk@wallnet.com>
In-Reply-To: <1038694892.61892.24.camel@localhost>
References:  <20021130014647.2d9b9d8a.chip@wiegand.org> <1038694892.61892.24.camel@localhost>

next in thread | previous in thread | raw e-mail | index | archive | help
With Samba 2.27 ( and earlier versions, the only samba-like line in=20
/etc/inetd.conf that should be unciommented is:
swat    stream  tcp     nowait/400      root    /usr/local/sbin/swat    s=
wat

and that's only if you want to run the web administration tool.

I tried the listed smb.conf, and the only change I made to it was a  netb=
ios=20
name line:
 Samba config file created using SWAT
# from mts-125.wallnet.com (208.225.162.57)
# Date: 2002/11/30 17:24:20

# Global parameters
[global]
        workgroup =3D HOMENET
        netbios name =3D CHIP
        server string =3D Chip
        log file =3D /var/log/log.%m
        max log size =3D 50

[homes]
        comment =3D Home Directories
        read only =3D No
        browseable =3D No

[mp3s]
        comment =3D My MP3's directory
        path =3D /usr/mp3s
        read only =3D No
        guest ok =3D Yes

With the netbios name defined, I was able to mount the mp3s share using=20
mount_smbfs:

mount_smbfs -W HOMENET -I 128.235.198.6 //timothyk@chip/mp3s /mp3

It all looks ok; I agree with Stacey, beware smbd and nmbd in inetd.conf

Tim Kellers
CPE/NJIT



On Saturday 30 November 2002 05:21 pm, Stacey Roberts wrote:
> Hi Chip,
>    How are you starting samba?
>
> You try to determine who's using port 139 by running:
> sockstat -4l
> netstat -at | grep -i list
> netstat -an | grep -i '139'
>
> Between the three commands, you should be able to track down who's got
> port 139 in the bag already. Saying this though, its often a problem
> with apps like samba, when you decide to start the daemons from inetd,
> but inadvertently run the start up scripts from /usr/local/etc/rc.d as
> well:-)
>
> Just something to verify in the mean time.
>
> Stacey
> PS:
> Is that *all* of your smb.conf?
>
> On Sat, 2002-11-30 at 09:46, chip wiegand wrote:
> > I just installed samba from the ports and set up the smb.conf file by=
,
> > initially,  setting only the workgroup name to match my home network.
> > I then tried to start samba but it fails with these messages -
> >
> > -bash-2.05b$ tail log.smbd
> >   Copyright Andrew Tridgell and the Samba Team 1992-2002
> > [2002/11/30 00:55:24, 0] lib/util_sock.c:open_socket_in(804)
> >   bind failed on port 139 socket_addr =3D 0.0.0.0.
> >   Error =3D Address already in use
> > [2002/11/30 01:28:16, 0] smbd/server.c:main(707)
> >   smbd version 2.2.7 started.
> >   Copyright Andrew Tridgell and the Samba Team 1992-2002
> > [2002/11/30 01:28:16, 0] lib/util_sock.c:open_socket_in(804)
> >   bind failed on port 139 socket_addr =3D 0.0.0.0.
> >   Error =3D Address already in use
> >
> > What else could be using port 139? And how do I fix this? I tried a
> > search of the lists on google but came up with no relevant answers.
> > Thanks,
> > Chip
> >
> > -- My smb.conf file --
> >
> > [global]
> > # workgroup =3D NT-Domain-Name or Workgroup-Name, eg: REDHAT4
> >    workgroup =3D HOMENET
> >
> > # server string is the equivalent of the NT Description field
> >    server string =3D Chip
> >
> > # this tells Samba to use a separate log file for each machine
> > # that connects
> >    log file =3D /var/log/log.%m
> >
> > # Put a capping on the size of the log files (in Kb).
> >    max log size =3D 50
> >
> > # Security mode. Most people will want user level security. See
> > # security_level.txt for details.
> >    security =3D user
> >
> > # Most people will find that this option gives better performance.
> > # See speed.txt and the manual pages for details
> > # You may want to add the following on a Linux system:
> > #         SO_RCVBUF=3D8192 SO_SNDBUF=3D8192
> >    socket options =3D TCP_NODELAY
> >
> > [homes]
> >    comment =3D Home Directories
> >    browseable =3D no
> >    writeable =3D yes
> >
> > [mp3s]
> >    comment =3D My MP3's directory
> >    path =3D /usr/mp3s
> >    read only =3D no
> >    public =3D yes
> >
> >
> >
> > To Unsubscribe: send mail to majordomo@FreeBSD.org
> > with "unsubscribe freebsd-questions" in the body of the message


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200211301734.31685.timothyk>