From owner-freebsd-questions@FreeBSD.ORG Tue Apr 27 02:21:44 2010 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id EB707106566C for ; Tue, 27 Apr 2010 02:21:43 +0000 (UTC) (envelope-from osp@aloha.com) Received: from relay.pixi.com (relay.pixi.com [206.127.224.101]) by mx1.freebsd.org (Postfix) with ESMTP id C81088FC08 for ; Tue, 27 Apr 2010 02:21:43 +0000 (UTC) Received: from yoda.pixi.com (yoda.pixi.com [206.127.224.41]) by relay.pixi.com (8.13.8+Sun/8.13.6) with ESMTP id o3R2LgRl012740; Mon, 26 Apr 2010 16:21:42 -1000 (HST) Received: from webmail.pixi.com (yoda.pixi.com [206.127.224.120] (may be forged)) by yoda.pixi.com (8.13.1/8.13.1) with SMTP id o3R2LfJg001833; Mon, 26 Apr 2010 16:21:41 -1000 Message-Id: <201004270221.o3R2LfJg001833@yoda.pixi.com> To: Chuck Swiger , osp@aloha.com, freebsd-questions@freebsd.org From: osp@aloha.com Date: Mon, 26 Apr 2010 16:21:41 HST X-Posting-IP: 141.190.32.72 X-Mailer: Endymion MailMan Standard Edition v3.2.19 Cc: Subject: Re: Cannot connect to Samba share 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, 27 Apr 2010 02:21:44 -0000 > Hi-- > > On Apr 26, 2010, at 5:05 PM, osp@aloha.com wrote: > > I have no such directory. /usr/local/etc/samba contains passwd.tdb and > > secrets.tdb. smb.conf is in /usr/local/etc. This is a straight install from > > ports. I do recall seeing liog files for smbd and nmbd in the past, but > > never on this box. That does seem strange. > > Your smb.conf should have a line similar to: > > # this tells Samba to use a separate log file for each machine > # that connects > log file = /var/log/samba/log.%m > > ....go to where that is pointing to. Ah ha! I had to CREATE the samba directory under /var/log. Seems like something the make install should take care of. Anyway, log files are happily collection, just as I remember them looking. I did not get much with default setting so I went to level one, then two. What I suspected seems to be right, the authentication succeeds but Vista drops the session. I have yet to get cups working and that logs some errors but I doubt that would cause the file share to drop. Here are the pertinent lines from log.smbd and the log for the client, with some details changed to protect the innocent. "work-clear" is the name of the share. Notice the last six entries, authentication is good, then in the last entry the connection is closed. Shall I go to level 3? The man page discourages it. from log.smbd (d = 2) [2010/04/26 15:51:15, 0] smbd/server.c:main(1274) smbd version 3.3.7 started. Copyright Andrew Tridgell and the Samba Team 1992-2009 [2010/04/26 15:51:15, 2] smbd/server.c:main(1278) uid=0 gid=0 euid=0 egid=0 [2010/04/26 15:51:15, 2] lib/tallocmsg.c:register_msg_pool_usage(106) Registered MSG_REQ_POOL_USAGE [2010/04/26 15:51:15, 2] lib/dmallocmsg.c:register_dmalloc_msgs(77) Registered MSG_REQ_DMALLOC_MARK and LOG_CHANGED [2010/04/26 15:51:15, 2] param/loadparm.c:do_section(7504) Processing section "[printers]" [2010/04/26 15:51:15, 2] param/loadparm.c:do_section(7504) Processing section "[work-dar]" [2010/04/26 15:51:15, 2] param/loadparm.c:do_section(7504) Processing section "[work-clear]" [2010/04/26 15:51:15, 0] printing/print_cups.c:cups_connect(103) Unable to connect to CUPS server localhost:631 - Connection refused [2010/04/26 15:51:15, 2] printing/print_cups.c:cups_async_callback(544) cups_async_callback: failed to read a new printer list [2010/04/26 15:51:15, 0] printing/print_cups.c:cups_connect(103) Unable to connect to CUPS server localhost:631 - Connection refused [2010/04/26 15:51:15, 2] printing/print_cups.c:cups_async_callback(544) cups_async_callback: failed to read a new printer list [2010/04/26 15:51:15, 2] lib/interface.c:add_interface(340) added interface bge0 ip=10.0.1.1 bcast=10.0.1.255 netmask=255.255.255.0 [2010/04/26 15:51:15, 2] lib/interface.c:add_interface(340) added interface ue0 ip=[UPSTREAM].183 bcast=[UPSTREAM].255 netmask=255.255.255.0 [2010/04/26 15:51:15, 0] smbd/server.c:main(1320) standard input is not a socket, assuming -D option [2010/04/26 15:51:15, 2] smbd/server.c:open_sockets_smbd(613) waiting for a connection from log.theVistaClient [2010/04/26 15:51:23, 2] auth/auth.c:check_ntlm_password(318) check_ntlm_password: Authentication for user [theusername] -> [theusername] FAILED with error NT_STATUS_WRONG_PASSWORD [2010/04/26 15:51:32, 2] smbd/sesssetup.c:setup_new_vc_session(1368) setup_new_vc_session: New VC == 0, if NT4.x compatible we would close all old resources. [2010/04/26 15:51:32, 2] smbd/sesssetup.c:setup_new_vc_session(1368) setup_new_vc_session: New VC == 0, if NT4.x compatible we would close all old resources. [2010/04/26 15:51:32, 2] auth/auth.c:check_ntlm_password(308) check_ntlm_password: authentication for user [theusername] -> [theusername] -> [theusername] succeeded [2010/04/26 15:51:32, 2] lib/access.c:check_access(406) Allowed connection from 10.0.1.10 (10.0.1.10) [2010/04/26 15:51:32, 2] auth/auth.c:check_ntlm_password(308) check_ntlm_password: authentication for user [theusername] -> [theusername] -> [theusername] succeeded [2010/04/26 15:51:32, 2] lib/access.c:check_access(406) Allowed connection from 10.0.1.10 (10.0.1.10) [2010/04/26 15:51:32, 1] smbd/service.c:make_connection_snum(1115) shafp09wk102123 (10.0.1.10) connect to service work-clear initially as user theusername (uid=1002, gid=1002) (pid 1159) [2010/04/26 15:51:32, 1] smbd/service.c:close_cnum(1327) shafp09wk102123 (10.0.1.10) closed connection to service work-clear Gary Dunn Open Slate Project