samba connection problem

Soo Hom syhom at ece.ucsd.edu
Tue Nov 27 08:02:17 GMT 2001


hme0 is the ethernet interface.  The system is an ultrasparc 5 running
solaris 7.  The real problem was not having write permission from the pc.
I thought going through the diagnosis.txt tests and fixing the problems
would fix my real problem.

Running your tcpdump I get:
# /usr/local/sbin/tcpdump -i lo0 -n | grep 139
tcpdump: /dev/lo0: No such file or directory

Adding read only = no fixed the write problem from the pc.  Thanks for
your assistance!

Soo




On Mon, 26 Nov 2001, Joel Hammer wrote:

> What is hme0 ?
> You have odd (to me) output from netstat -i. What system are you running on?
> I thought that the loopback device is different from the lo device, but this
> is linux I am talking about.
> You seem to have switched problems. I thought the not listening to calling
> name was the original problem.
> I don't know why you are getting that but you haven't run tcpdump to look at
> it. If this is happening only on the local machine try:
> tcpdump -i lo0 -n | grep 139
> The error message you are getting is likely coming from smbd, so you are
> talking to it. 
> The upload problem could have many causes. You song samba share doesn't list
> any information about access, like read or write list, or guest ok , and so
> on. Try read only = no (look at swat for ideas on this).
> Joel
> 
> 
> 
> On Mon, Nov 26, 2001 at 02:35:52PM -0800, Soo Hom wrote:
> > 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
> > > > 
> > > > 
> > > 
> > 
> > 
> > -- 
> > To unsubscribe from this list go to the following URL and read the
> > instructions:  http://lists.samba.org/mailman/listinfo/samba
> 





More information about the samba mailing list