From owner-freebsd-questions Sat Nov 30 14:21:34 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 C8DCE37B401 for ; Sat, 30 Nov 2002 14:21:31 -0800 (PST) Received: from colossus.systems.pipex.net (colossus.systems.pipex.net [62.241.160.73]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0423A43E4A for ; Sat, 30 Nov 2002 14:21:31 -0800 (PST) (envelope-from stacey@vickiandstacey.com) Received: from [192.168.1.8] (81-86-129-77.dsl.pipex.com [81.86.129.77]) by colossus.systems.pipex.net (Postfix) with ESMTP id E33B416000102; Sat, 30 Nov 2002 22:21:27 +0000 (GMT) Subject: Re: samba fails - port already in use problem From: Stacey Roberts Reply-To: stacey@vickiandstacey.com To: chip wiegand Cc: FreeBSD Questions In-Reply-To: <20021130014647.2d9b9d8a.chip@wiegand.org> References: <20021130014647.2d9b9d8a.chip@wiegand.org> Content-Type: text/plain Organization: Message-Id: <1038694892.61892.24.camel@localhost> Mime-Version: 1.0 X-Mailer: Ximian Evolution 1.2.0 Date: 30 Nov 2002 22:21:32 +0000 Content-Transfer-Encoding: 7bit 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 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 = 0.0.0.0. > Error = 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 = 0.0.0.0. > Error = 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 = NT-Domain-Name or Workgroup-Name, eg: REDHAT4 > workgroup = HOMENET > > # server string is the equivalent of the NT Description field > server string = Chip > > # this tells Samba to use a separate log file for each machine > # that connects > log file = /var/log/log.%m > > # Put a capping on the size of the log files (in Kb). > max log size = 50 > > # Security mode. Most people will want user level security. See > # security_level.txt for details. > security = 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=8192 SO_SNDBUF=8192 > socket options = TCP_NODELAY > > [homes] > comment = Home Directories > browseable = no > writeable = yes > > [mp3s] > comment = My MP3's directory > path = /usr/mp3s > read only = no > public = yes > > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-questions" in the body of the message -- Stacey Roberts B.Sc (HONS) Computer Science Web: www.vickiandstacey.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message