From owner-freebsd-questions@FreeBSD.ORG Tue Apr 24 22:49:12 2007 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 55CCE16A404 for ; Tue, 24 Apr 2007 22:49:12 +0000 (UTC) (envelope-from xrayv19@yahoo.com) Received: from web58108.mail.re3.yahoo.com (web58108.mail.re3.yahoo.com [68.142.236.131]) by mx1.freebsd.org (Postfix) with SMTP id 0C57B13C448 for ; Tue, 24 Apr 2007 22:49:11 +0000 (UTC) (envelope-from xrayv19@yahoo.com) Received: (qmail 96850 invoked by uid 60001); 24 Apr 2007 22:49:11 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=X-YMail-OSG:Received:Date:From:Subject:To:In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding:Message-ID; b=1oAER/J1EqgFKWhn0K7pqi2QYw2mjLDePsHqeWxZ6Fcll3FRGg1m/y/ThE9TqOL0tx/tOi48E8BNyvSA6l05Bbtg7vjIvEZPYGOr0Ag0+mD6EvFY/fG1kTRQkve0cougIlqvEI/TcW9bDLnxzLfLYovW/N3KpOpfuGNK3cz4qa4=; X-YMail-OSG: YOb6pyEVM1lAmlAElAiXXT8itWOhlqRhHOZ512vzFnkhiGNe5UTSn.GZFxz33JbpmJcRJ6etQ0UkwP7o0.gpHFTBNxsVjib5XDGOKD.AicpiU938czUMArH7acEbpnE4 Received: from [131.191.24.2] by web58108.mail.re3.yahoo.com via HTTP; Tue, 24 Apr 2007 15:49:11 PDT Date: Tue, 24 Apr 2007 15:49:11 -0700 (PDT) From: L Goodwin To: Derek Ragona , freebsd-questions@freebsd.org In-Reply-To: <6.0.0.22.2.20070424163717.02660ca0@mail.computinginnovations.com> MIME-Version: 1.0 Message-ID: <276990.96279.qm@web58108.mail.re3.yahoo.com> Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: Subject: Re: Samba connection fails X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 24 Apr 2007 22:49:12 -0000 Gee, it works a lot better once I add server name to /etc/hosts! 8-D Derek Ragona wrote: At 03:38 PM 4/24/2007, L Goodwin wrote: I installed the samba-3.0.23c_2,1 package on a server destined for a small office network running Windows clients. Have not yet configured the network settings. Am trying to test the Samba configuration "offline" before connecting it to the network (router connected to cable modem, clients connected to router via Cat-5e Ethernet). Issues/Questions (see Samba configuration details at end of email): This is a bit off-topic here. There are samba lists that will better serve you. 1) "smbclient -L " fails with "Connection to SERVER failed". Get same error for "smbclient //SERVER/sambavol". What does this mean? 2) What value to assign "netbios name" in smb.conf? The netbios name is the server's name your client pc's will see for those shares. It will be case insensitive and needs to be a unique name for the LAN. 3) What degree of network configuration is necessary for "smbclient -L " to work? You need a proper IP stack running that will hit the gateway for your LAN. 4) How to verify that Samba3 package was installed successfully (other than lack of warnings/errors during install)? Use a client computer and test the connection. There are utilities to help, but they don't always completely test a windows client connecting. SAMBA CONFIGURATION DETAILS: 1) Create smb.conf file in /usr/local/etc: [global] workgroup = office netbios name = tbd (is this required, and how/where to get/set it?) It is the server name you will use on your LAN. Make it up. security = share [sambavol] path = /sambavol browseable = yes writeable = yes printable = no 2) Add entry to start samba in /etc/rc.conf: samba_enable="YES" 3) Start Samba: /usr/local/etc/rc.d/samba start (to stop samba: /usr/local/etc/rc.d/samba.sh stop) Or it will start on boot-up. Note: Need to keep the file server synced with Internet standard time (see NTPD(8) man page). Tests: -------------------------------------------------------------------------------------------------- 1) Verify that smb.conf file is in the right directory (gets read): which smbd # Get location of smbd (output: usr/local/sbin/smbd) cd /usr/local/sbin # cd to the directory containing smbd! smbd -b | grep smb.conf # Get location of smb.conf (verify path is correct) (output: CONFIGFILE: /usr/local/sbin/smb.conf) RESULT: OK 2) Test Samba configuration file: cd /usr/local/etc testparm smb.conf RESULT: OK 3) List shares available on server: smbclient -L RESULT: FAIL ("Connection to SERVER failed") Additional Samba Configuration Steps: 1) Uncommented the following lines in /etc/inetd.conf and rebooted: #netbios-ssn stream tcp nowait root /usr/local/sbin/smbd smbd #netbios-ns dgram udp wait root /usr/local/sbin/nmbd nmbd On reboot, get these boot messages: ... Removing stale Samba tdb files: ...... done Starting nmbd. Starting smbd. Starting usbd. ... RESULT: Still getting "Connection to SERVER failed". Depends on how you are trying to do your authentication. Check your smb.conf. If you are going to authenticat against an existing windows domain or active directory you need to compile windbind in your samba. -Derek -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. MailScanner thanks transtec Computers for their support. --------------------------------- Ahhh...imagining that irresistible "new car" smell? Check outnew cars at Yahoo! Autos.