smbclient problem
Ng Choon Hooi
chng at radon.comm.mot.com
Tue May 19 07:50:35 GMT 1998
Hi,
yes, it is. Anyway, below are some of the diagnostics I have tried.
Linux box Win95 Box
========= ===========
hostname: saturn tempest
ip: 192.168.0.2 192.168.0.1
Below are the diagnostics that I have tried and I ahve logged them:
1. From win95 (tempest):
-----------------------
c:\ping saturn
Pinging saturn.tm.net.my [192.168.0.2] with 32 bytes of data:
Reply from 192.168.0.2: bytes=32 time=2ms TTL=255
Reply from 192.168.0.2: bytes=32 time=1ms TTL=255
Reply from 192.168.0.2: bytes=32 time=3ms TTL=255
Reply from 192.168.0.2: bytes=32 time=1ms TTL=255
2. From linux (saturn):
-----------------------
saturn:~# ping tempest
PING tempest.tm.net.my (192.168.0.1): 56 data bytes
64 bytes from 192.168.0.1: icmp_seq=0 ttl=32 time=2.3 ms
64 bytes from 192.168.0.1: icmp_seq=1 ttl=32 time=1.8 ms
64 bytes from 192.168.0.1: icmp_seq=2 ttl=32 time=1.9 ms
64 bytes from 192.168.0.1: icmp_seq=3 ttl=32 time=2.3 ms
64 bytes from 192.168.0.1: icmp_seq=4 ttl=32 time=2.1 ms
--- tempest.tm.net.my ping statistics ---
5 packets transmitted, 5 packets received, 0% packet loss
round-trip min/avg/max = 1.8/2.0/2.3 ms
3. using netstat:
--------------------
saturn:~# netstat -a |more
** snip**
tcp 0 0 *:netbios-ssn *:* LISTEN
root
** snip**
4. inetd.conf file
-------------------
** snip**
netbios-ssn stream tcp nowait root /usr/sbin/smbd smbd
netbios-ns dgram udp wait root /usr/sbin/nmbd nmbd
5. /etc/hosts file
-----------------
127.0.0.1 localhost
192.168.0.2 saturn.tm.net.my saturn
192.168.0.1 tempest.tm.net.my tempest
6. /etc/resolv.conf
-----------------
saturn:/etc# cat resolv.conf
domain tm.net.my
7. /etc/host.conf
-----------------
saturn:/etc# cat host.conf
order hosts, bind
multi on
I did look at some samba howto and stuff, but dont seem to find anywhere mentioning
this problem.
Thanks,
Choon
>
> > is 'saturn' in /etc/hosts?
> >
> >
> >
> > Ng Choon Hooi wrote:
> > >
> > > Hi all,
> > > I was directed by Luke to send to the samba digest. Hope someone can help. Thanks.
> > >
> > > p/s: Pls cc to chng at comm.mot.com
> > >
> > > rgds,
> > > choon
> > >
> > > >
> > > > hi choon,
> > > >
> > > > this is a standard issue that if you ask on the samba digest
> > > > (samba at samba.anu.edu.au) you are likely to get about three replies to :-)
> > > >
> > > > i'm not answering too many questions at the mo: i have r.s.i.
> > > >
> > > > good luck!
> > > >
> > > > luke
> > > >
> > > > On Sun, 17 May 1998, Ng Choon Hooi wrote:
> > > >
> > > > > Hi Luke,
> > > > > I couldn't find the way to post my message from the samba h/page. I
> > > > > got your address from the archive. Hope you can help me with the
> > > > > following problem. I am trying to set up my samba on my slackware linux,
> > > > > so that I can file-share with my win95 machine. Apprently, I have the
> > > > > following error mesg.
> > > > >
> > > > > With "interfaces = 192.168.0.2" in smb.conf
> > > > > -------------------------------------------------
> > > > > saturn:~# smbclient -L saturn
> > > > > Get_Hostbyname: Unknown host saturn.
> > > > > Failed to get my hostname.
> > > > > Get_Hostbyname: Unknown host saturn.
> > > > > No interface found for address 208.108.11.80
> > > > > Added interface ip=208.108.11.80 bcast=208.108.11.255
> > > > > nmask=255.255.255.0
> > > > > Get_Hostbyname: Unknown host saturn.
> > > > > Get_Hostbyname: Unknown host saturn.
> > > > > Get_Hostbyname: Unknown host. saturn
> > > > > Get_Hostbyname: Unknown host SATURN.
> > > > >
> > > > > With "interfaces = 192.168.0.2" in smb.conf
> > > > > -------------------------------------------------
> > > > > saturn:~# smbclient -L saturn
> > > > > Get_Hostbyname: Unknown host saturn.
> > > > > Failed to get my hostname.
> > > > > Added interface ip=192.168.0.2 bcast=192.168.0.255 nmask=255.255.255.0
> > > > > Get_Hostbyname: Unknown host saturn.
> > > > > Get_Hostbyname: Unknown host saturn.
> > > > > Get_Hostbyname: Unknown host. saturn
> > > > > Get_Hostbyname: Unknown host SATURN.
> > > > >
> > > > > "saturn" is that hostname of my linux machine. Its ip is 192.168.0.2.I
> > > > > am not sure why it says Unknown host. saturn, though I can
> > > > > ping/telnet/ftp to "saturn", both by hostname as well as by ip addr. Do
> > > > > you have any idea what could be the problem? When smbclient is executed,
> > > > > what files does it refer to anyway? Thank you.
> > > > >
> > > > > --
> > > > > Regards,
> > > > > Choon
> > > > >
> > > >
> > > >
> >
>
>
More information about the samba
mailing list