From owner-freebsd-questions Sat Nov 30 14:35: 3 2002 Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 6C4DB37B401 for ; Sat, 30 Nov 2002 14:34:59 -0800 (PST) Received: from serv1.wallnet.com (server1.wallnet.com [208.225.162.122]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7E2AB43EC5 for ; Sat, 30 Nov 2002 14:34:58 -0800 (PST) (envelope-from timothyk@wallnet.com) Received: (from root@localhost) by serv1.wallnet.com (8.11.5/8.11.5) id gAUMYvb59330; Sat, 30 Nov 2002 17:34:57 -0500 (EST) (envelope-from timothyk@wallnet.com) Received: from 10.0.1.9 (mts-125.wallnet.com [208.225.162.57]) by serv1.wallnet.com (8.11.5/8.11.5av) with ESMTP id gAUMYsg59321; Sat, 30 Nov 2002 17:34:54 -0500 (EST) (envelope-from timothyk@wallnet.com) Content-Type: text/plain; charset="iso-8859-1" From: Tim Kellers To: stacey@vickiandstacey.com, chip wiegand Subject: Re: samba fails - port already in use problem Date: Sat, 30 Nov 2002 17:34:31 -0500 User-Agent: KMail/1.4.3 Cc: FreeBSD Questions References: <20021130014647.2d9b9d8a.chip@wiegand.org> <1038694892.61892.24.camel@localhost> In-Reply-To: <1038694892.61892.24.camel@localhost> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Message-Id: <200211301734.31685.timothyk@wallnet.com> X-Virus-Scanned: by AMaViS perl-11 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG 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