samba connection problem

Soo Hom syhom at ece.ucsd.edu
Mon Nov 26 14:37:02 GMT 2001


I ran the diagnostics you suggested:
# netstat -i
Name  Mtu  Net/Dest      Address        Ipkts  Ierrs Opkts  Oerrs Collis
Queue 
lo0   8232 loopback      localhost      320    0     320    0     0      0     
hme0  1500 song1.ucsd.edu song1.ucsd.edu 28619  0     2248   0     17
0 


/usr/local/sbin/tcpdump -i hme0 -n | grep 139

14:26:50.012480 132.239.24.7.1053 > 132.239.228.172.139: P 5381:5469(88)
ack 15370 win 16197
14:26:50.058486 132.239.228.172.139 > 132.239.24.7.1053: . ack 5469 win
8760 (DF)
14:26:50.059659 132.239.24.7.1053 > 132.239.228.172.139: P 5469:5557(88)
ack 15370 win 16197


The client can connect to the samba server and download files from the
home directory.  The problem is when I try uploading to the samba server I
get access is denied error.  Any ideas?

I did try commenting out the hosts allow line and that didn't make a
difference.

When I am on the samba server itself I still get this error:
# ./smbclient -L song1
added interface ip=132.239.228.172 bcast=132.239.255.255 nmask=255.255.0.0
session request to SONG1 failed (Not listening for calling name)
session request to *SMBSERVER failed (Not listening for calling name)
 
It's not a big deal but I thought I'd mention it.


Soo




On Tue, 20 Nov 2001, Joel Hammer wrote:

> I would run tcpdump -i eth0 (or eth1, etc) -n | grep 139.
> See if the server and the client are at least talking to each other.
> They do talk to each other if the hosts allow statement excludes the client.
> I would also try removing the hosts allow statement entirely, if you haven't
> tried that already.
> I would also look at the logs. (log level = 3) Here is what I see when
> hosts allow does not permit a connection from the client.
> hammer2 is trying to connect to the server.
> 
> lib/access.c:only_ipaddrs_in_list(271)
>   only_ipaddrs_in_list: list [localhost] has non-ip address localhost
> lib/access.c:check_access(310)
>   check_access: hostnames in host allow/deny list.
> lib/access.c:check_access(322)
>   Denied connection from hammer2.jhammer.org (192.168.0.2)
> Joel
> 
> On Tue, Nov 20, 2001 at 12:53:24PM -0800, Soo Hom wrote:
> > I made the changes in my previous email and restarted the machine.  I'm
> > still getting :
> > # ./smbclient -L song1
> > added interface ip=132.239.228.172 bcast=132.239.255.255 nmask=255.255.0.0
> > session request to SONG1 failed (Not listening for calling name)
> > session request to *SMBSERVER failed (Not listening for calling name)
> > 
> > Any other suggestions?
> > 
> > Soo
> > 
> > 
> 





More information about the samba mailing list