Long Time Samba No Work-Need Expert Help On Samba/Networking

Leonard Chatagnier lenc5570 at sbcglobal.net
Sun Jul 22 23:11:13 UTC 2007


--- Karl Auer <kauer at biplane.com.au> wrote:

> Hullo Leonard.
> 
> I am coming in to this conversation late, so here
> are a couple of things
> you may already have thought about:
> 
> - can the two machines ping each other? If not, you
> have a basic
> connectivity problem between them, and the problem
> is almost certainly
> nothing to do with samba.
>
Hello Karl, from way down in Australia where nice
people live.  Had email help from another guy down
there but don't remember his name now.
Thanks for the response.  It's really appreciated.
However, I can ping the WinXP and Ubuntu pcs very
well.
 
> - if the machines can ping each other, look in the
> samba logs to see if
> there is any connection attempt being "seen" by
> samba. Increase the log
> level to 5 or 6 to make sure you see connections. If
> you see error
> messages, they may give you a clue.
> 
Sorry, this is long. I've copied anything that looked
suspicious but what seems significant is the "adding
interfaces" part in log.winbindd. When it gets to the
WXP machine part, the message is can't determine
netmask for 192.168.1.65.
Reading samba logs:
This was logged about the same time trying to mount
shares on the WXP comp.
cat log.pavilion8370
<snip>
[2007/07/21 19:38:21, 2]
smbd/uid.c:change_to_user(188)
  change_to_user: SMB user  (unix user nobody, vuid
101) not permitted access to share IPC$.
[2007/07/21 19:38:21, 0]
smbd/service.c:make_connection_snum(849)
  Can't become connected user!
[2007/07/21 19:38:21, 3]
smbd/connection.c:yield_connection(69)
  Yielding connection to IPC$
[2007/07/21 19:38:21, 3]
smbd/error.c:error_packet(146)
  error packet at smbd/reply.c(676) cmd=117 (SMBtconX)
NT_STATUS_LOGON_FAILURE
[2007/07/21 19:38:21, 3]
smbd/process.c:process_smb(1110)
  Transaction 5 of length 53
[2007/07/21 19:38:21, 3]
smbd/process.c:switch_message(914)
  switch message SMBecho (pid 12391) conn 0x0
[2007/07/21 19:38:21, 3]
smbd/sec_ctx.c:set_sec_ctx(241)
  setting sec ctx (0, 0) - sec_ctx_stack_ndx = 0
[2007/07/21 19:38:21, 3] smbd/reply.c:reply_echo(3584)
  echo 1 times
[2007/07/21 19:38:21, 3]
smbd/sec_ctx.c:set_sec_ctx(241)
  setting sec ctx (0, 0) - sec_ctx_stack_ndx = 0
[2007/07/21 19:38:21, 3]
smbd/process.c:timeout_processing(1359)
  timeout_processing: End of file from client (client
has disconnected).
[2007/07/21 19:38:21, 3]
smbd/sec_ctx.c:set_sec_ctx(241)
  setting sec ctx (0, 0) - sec_ctx_stack_ndx = 0
[2007/07/21 19:38:21, 3]
smbd/connection.c:yield_connection(69)
  Yielding connection to
[2007/07/21 19:38:21, 3]
smbd/server.c:exit_server_common(675)
  Server exit (normal exit)
lchata at ubuntu:/var/log/samba$

cat log.smbd
<Snip>
[2007/07/21 20:26:40, 0]
lib/util_sock.c:open_socket_in(830)
  bind failed on port 139 socket_addr = 0.0.0.0.
  Error = Address already in use
[2007/07/21 20:26:40, 3]
smbd/sec_ctx.c:set_sec_ctx(241)
  setting sec ctx (0, 0) - sec_ctx_stack_ndx = 0
[2007/07/21 20:26:40, 3]
smbd/connection.c:yield_connection(69)
  Yielding connection to
[2007/07/21 20:26:40, 3]
smbd/connection.c:yield_connection(76)
  yield_connection: tdb_delete for name  failed with
error Record does not exist.
[2007/07/21 20:26:40, 3]
smbd/server.c:exit_server_common(675)
  Server exit (normal exit)

Cat log.ubuntu 
[2007/07/21 14:50:40, 2]
smbd/uid.c:change_to_user(188)
  change_to_user: SMB user nobody (unix user nobody,
vuid 101) not permitted access to share IPC$.
[2007/07/21 14:50:40, 0]
smbd/service.c:make_connection_snum(849)
  Can't become connected user!
[2007/07/21 14:50:40, 3]
smbd/connection.c:yield_connection(69)
  Yielding connection to IPC$
[2007/07/21 14:50:40, 3]
smbd/error.c:error_packet(146)
  error packet at smbd/reply.c(676) cmd=117 (SMBtconX)
NT_STATUS_LOGON_FAILURE
[2007/07/21 14:50:40, 3]
smbd/process.c:timeout_processing(1359)
  timeout_processing: End of file from client (client
has disconnected).
[2007/07/21 14:50:40, 3]
smbd/sec_ctx.c:set_sec_ctx(241)
  setting sec ctx (0, 0) - sec_ctx_stack_ndx = 0
[2007/07/21 14:50:40, 3]
smbd/connection.c:yield_connection(69)
  Yielding connection to
[2007/07/21 14:50:40, 3]
smbd/server.c:exit_server_common(675)
  Server exit (normal exit)

cat log winbindd
[2007/07/22 07:35:48, 3]
param/loadparm.c:lp_add_ipc(2637)
  adding IPC service
[2007/07/22 07:35:48, 2]
lib/interface.c:add_interface(81)
  added interface ip=127.0.0.1 bcast=127.255.255.255
nmask=255.0.0.0
[2007/07/22 07:35:48, 2]
lib/interface.c:add_interface(81)
  added interface ip=192.168.1.64 bcast=192.168.1.255
nmask=255.255.255.0
[2007/07/22 07:35:48, 3]
lib/interface.c:add_interface(59)
  not adding duplicate interface 192.168.1.64
[2007/07/22 07:35:48, 2]
lib/interface.c:interpret_interface(130)
  can't determine netmask for 192.168.1.65
lchata at ubuntu:/var/log/samba$
End of log messages.

> - depending on how you have samba configured, you
> may need to run
> smbpasswd on the sharing machine to set up an
> encrypted password for the
> user you are connecting as.
> 
I'm using security = user(smb.conf on the linux comp)
and have added my user name, password via:
smbpasswd -a username.
/etc/samba/smbpasswd show entries for my user name,
smbguest, and Pavilion8370$.

> > can't determine netmask for 192.168.1.65
> > Could not resolve mount point /mnt/My Pictures
> 
> - a temporary possible fix would be to specify the
> interfaces in the
> global section of smb.conf, something like:
> 
> [global]
>         interfaces = 192.168.1.65/24
>         bind interfaces only = yes
> 
Ok, the orig smb.conf had "interfaces = 127.0.0.0/8
eth0(eth0 should get everything, shouldn't it or does
wlan0 have to be there also) and I added the IPs for
each machine but not the /24 part.  Maybe, hopefully
tha's the problem.  The /24 part is now added.

> If that actually works then something very strange
> is going on, but at
> least you'd be operational.
> 
> > Another thing I noticed but probably not
> significant
> > is that the ip address shown is different from
> that
> > shown by ifconfig.  On the gateway is was
> > 70.136.29.202(and changed again when I came back
> after
> > restart).  Maybe you know if this means anything.
> 
> It sounds like you were looking at the NAT address.
> Your ISP allocates a
> globally unique address to you, then your router
> translates your
> internal IP addresses to and from that one address
> as packets go to and
> from the Internet. Am I right in thinking that the
> two machines you want
> to talk to each other are both local to you, and
> both in the same
> network? If so, the router is irrelevant. HOWEVER:
> lots of home routers
> have a small switch built into them, with four
> switch ports. It is
> important that both your computers are connected to
> the switch ports on
> the same router so they are in the same network. If
> the ping test works,
> then that is OK.
> 
Thanks for this bit of insight and adding to my
limited understanding of samba and networking. I can
ping so should be ok here.

> What is the output from "ifconfig" on the linux box
> and "ipconfig /all"
> on the windows box (need to do that in a DOS
> window)?
> 
Thanks for asking this.  It seems most revelent but no
one has asked for it.  I have looked at both before
and wondered why the WXP wlan data doesn't show on
ifconfig.

lchata at ubuntu:/var/log/samba$ ifconfig
eth0      Link encap:Ethernet  HWaddr
00:50:04:99:48:F4
          inet addr:192.168.1.64  Bcast:192.168.1.255 
Mask:255.255.255.0
          inet6 addr: fe80::250:4ff:fe99:48f4/64
Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500 
Metric:1
          RX packets:56996 errors:0 dropped:0
overruns:0 frame:0
          TX packets:44889 errors:0 dropped:0
overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:57437006 (54.7 MiB)  TX
bytes:5588972 (5.3 MiB)
          Interrupt:11 Base address:0x2000

lo        Link encap:Local Loopback
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:139 errors:0 dropped:0 overruns:0
frame:0
          TX packets:139 errors:0 dropped:0 overruns:0
carrier:0
          collisions:0 txqueuelen:0
          RX bytes:10324 (10.0 KiB)  TX bytes:10324
(10.0 KiB)

lchata at ubuntu:/var/log/samba$ 

My DOS command has suffered since going to linux, so
this took a while to figure out how to get it from WXP
to linux. Sorry for the delay; I should have been
finished last night.
lchata at ubuntu:/var/log/samba$ cat /mnt//ipconfig.txt

Windows IP Configuration

        Host Name . . . . . . . . . . . . :
pavilion8370
        Primary Dns Suffix  . . . . . . . :
        Node Type . . . . . . . . . . . . : Broadcast
        IP Routing Enabled. . . . . . . . : Yes
        WINS Proxy Enabled. . . . . . . . : Yes
        DNS Suffix Search List. . . . . . :
gateway.2wire.net

Ethernet adapter Wireless Network Connection:

        Connection-specific DNS Suffix  . :
gateway.2wire.net
        Description . . . . . . . . . . . : Linksys
Wireless-G PCI Adapter
        Physical Address. . . . . . . . . :
00-12-17-92-33-D8
        Dhcp Enabled. . . . . . . . . . . : Yes
        Autoconfiguration Enabled . . . . : Yes
        IP Address. . . . . . . . . . . . :
192.168.1.65
        Subnet Mask . . . . . . . . . . . :
255.255.255.0
        Default Gateway . . . . . . . . . :
192.168.1.254
        DHCP Server . . . . . . . . . . . :
192.168.1.254
        DNS Servers . . . . . . . . . . . :
192.168.1.254
        Lease Obtained. . . . . . . . . . : Sunday,
July 22, 2007 8:31:34 AM
        Lease Expires . . . . . . . . . . : Monday,
July 23, 2007 8:31:34 AM
lchata at ubuntu:/var/log/samba$   

Karl, I really appreciate your help.  It's the most
detailed anyone has ever done before on this issue. I
confident that with your help I'll finally get to
experience file sharing.  Many thanks for you effort.

PS-After completing all the suggestions and restarting
samba(no reboot or restart X), running the commands
with output below, I see that 192.168.1.65 is now
added with netmask but it still doesn't recognize the
mount point. I changed my UID in WXP from my name to
initials (to make it same as Ubuntu)and ever since
there seems to be some association problems with the
shares.  I hope this is not the problem with the mount
point as I have not idea how to fix.
Output is:
lchata at ubuntu:/var/log/samba$ sudo /etc/init.d/samba
restart
 * Stopping Samba daemons...                          
                                           
start-stop-daemon: warning: failed to kill 5334: No
such process
                                                      
                                     [ OK ]
 * Starting Samba daemons...                          
                                     [ OK ]
lchata at ubuntu:/var/log/samba$ sudo mount -t smbfs
//PAVILION8370/C$ /mnt/C$
opts: rw
mount.smbfs started (version 3.0.24)
added interface ip=127.0.0.1 bcast=127.255.255.255
nmask=255.0.0.0
added interface ip=192.168.1.64 bcast=192.168.1.255
nmask=255.255.255.0
not adding duplicate interface 192.168.1.64
added interface ip=192.168.1.65 bcast=192.168.1.255
nmask=255.255.255.0
Could not resolve mount point /mnt/C$
lchata at ubuntu:/var/log/samba$ smbclient -L
192.168.1.65
Password:
Domain=[PAVILION8370] OS=[Windows 5.1] Server=[Windows
2000 LAN Manager]

        Sharename       Type      Comment
        ---------       ----      -------
        Default User    Disk
        IPC$            IPC       Remote IPC
        SharedDocs      Disk
        print$          Disk      Printer Drivers
        My Music        Disk
        EPSONSty        Printer   EPSON Stylus CX5800F
Series
        C               Disk
        NetHood         Disk
        EPSON Stylus CX6400 Disk
        ADMIN$          Disk      Remote Admin
        C$              Disk      Default share
        Printer         Printer   EPSON Stylus CX6400
session request to 192.168.1.65 failed (Called name
not present)
session request to 192 failed (Called name not
present)
Domain=[PAVILION8370] OS=[Windows 5.1] Server=[Windows
2000 LAN Manager]

        Server               Comment
        ---------            -------

        Workgroup            Master
        ---------            -------
lchata at ubuntu:/var/log/samba$ smbclient -L
pavilion8370
Password:
Domain=[PAVILION8370] OS=[Windows 5.1] Server=[Windows
2000 LAN Manager]

        Sharename       Type      Comment
        ---------       ----      -------
        Default User    Disk
        IPC$            IPC       Remote IPC
        SharedDocs      Disk
        print$          Disk      Printer Drivers
        My Music        Disk
        EPSONSty        Printer   EPSON Stylus CX5800F
Series
        C               Disk
        NetHood         Disk
        EPSON Stylus CX6400 Disk
        ADMIN$          Disk      Remote Admin
        C$              Disk      Default share
        Printer         Printer   EPSON Stylus CX6400
Domain=[PAVILION8370] OS=[Windows 5.1] Server=[Windows
2000 LAN Manager]

        Server               Comment
        ---------            -------

        Workgroup            Master
        ---------            -------
lchata at ubuntu:/var/log/samba$ sudo mount -t smbfs
//PAVILION8370/C$ /mnt/C$
opts: rw
mount.smbfs started (version 3.0.24)
added interface ip=127.0.0.1 bcast=127.255.255.255
nmask=255.0.0.0
added interface ip=192.168.1.64 bcast=192.168.1.255
nmask=255.255.255.0
not adding duplicate interface 192.168.1.64
added interface ip=192.168.1.65 bcast=192.168.1.255
nmask=255.255.255.0
Could not resolve mount point /mnt/C$
lchata at ubuntu:/var/log/samba$
       


 




Leonard Chatagnier
lenc5570 at sbcglobal.net




More information about the ubuntu-users mailing list