Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 26 Apr 2010 16:21:41 HST
From:      osp@aloha.com
To:        Chuck Swiger <cswiger@mac.com>, osp@aloha.com, freebsd-questions@freebsd.org
Subject:   Re: Cannot connect to Samba share
Message-ID:  <201004270221.o3R2LfJg001833@yoda.pixi.com>

next in thread | raw e-mail | index | archive | help
> 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





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