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@comm.mot.com
> > >
> > > rgds,
> > > choon
> > >
> > > >
> > > > hi choon,
> > > >
> > > > this is a standard issue that if you ask on the samba digest
> > > > (samba@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
> > > > >
> > > >
> > > >
> >
>
>
Hi all, I added in "search tm.net.my", and did a "smbclient -L saturn". The result....same problem, same error mesg (see below). When I typed in "smbclient -L saturn -I 192.168.0.2", it gives the same error mesg (Get_Hostbyname: Unknown host saturn. ...) , and then follows by "....being unfriendly....". Just wondering if someone can tell me what files smbclient are looking for exactly. Looks like smbclient couldnt "see" one of the required files or something. p/s: Pls cc reply to mailto:chng@radon.comm.mot.com . Thank you. Choon> > Have you added a: > search <domain> > > to your resolv.conf? > > > -----Original Message----- > > From: Ng Choon Hooi [mailto:chng@radon.comm.mot.com] > > Sent: Monday, May 18, 1998 4:53 PM > > To: Multiple recipients of list > > Subject: smbclient problem > > > > > > > > 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@comm.mot.com > > > > > > > > > > rgds, > > > > > choon > > > > > > > > > > > > > > > > > hi choon, > > > > > > > > > > > > this is a standard issue that if you ask on the samba digest > > > > > > (samba@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 > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > >-- Regards, CH Ng --------------------------------------------------- Motorola Penang Malaysia, Bayan Lepas FTZ Phase 3, 11900, Penang, Malaysia. Email: chng@comm.mot.com / ccn011@email.mot.com MSMail: Ng-CCN011 ChoonHooi Tel: 60-4-8504156/4355 (Direct), Fax: 60-4-6432220 -----------
Hi, When I try to connect to an CIFS server using the smbclient command. It connects however gives me "read socket failed. ERRNO = Connection refused" this message appear tweice before it connects as in the smb:> prompt comes. Could some one help.
Why am I not getting the smb:\> prompt after I run the
smbclient? Look at the following output. Thanks.
[root@RedHat samba]$ smbclient -U jack -L localhost
added interface ip=10.10.6.31 bcast=10.10.255.255
nmask=255.255.0.0
Password:
Domain=[METRAN] OS=[Unix] Server=[Samba 2.2.8a]
Sharename Type Comment
--------- ---- -------
test Disk For testing only,
please
IPC$ IPC IPC Service (Samba
2.2.8a)
ADMIN$ Disk IPC Service (Samba
2.2.8a)
Server Comment
--------- -------
JACK
JACKREDHAT Samba 2.2.8a
Workgroup Master
--------- -------
3RDEVOLUTION CENTRICITY
METRAN JACKREDHAT
NP04 3RDDC01
NT-REALM COLEXC01
NT4 NT4PDC
WORKGROUP NT-ACCESS
[jack@RedHat samba]$
__________________________________
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software
http://sitebuilder.yahoo.com
On Mon, 15 Sep 2003, Mark Liu wrote:> Why am I not getting the smb:\> prompt after I run the > smbclient? Look at the following output. Thanks. > > > [root@RedHat samba]$ smbclient -U jack -L localhostMark, man smbclient Would be useful! -L means list all resources. It is doing what you asked it to do. - John T. -- John H Terpstra Email: jht@samba.org