LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 07-04-2004, 07:37 AM   #1
ivanatora
Member
 
Registered: Sep 2003
Location: Bulgaria
Distribution: Ubuntu 9.10, FreeBSD 7.2
Posts: 459

Rep: Reputation: 32
smbclient cannot connect


Code:
$ smbclient -N -L freeman
Domain=[HALA] OS=[Windows 5.1] Server=[Windows 2000 LAN Manager]
tree connect failed: NT_STATUS_DUPLICATE_NAME
$ nmblookup HALA
querying HALA on 10.10.10.255
querying HALA on 192.168.1.255
name_query failed to find name HALA
Here is the smb.conf (pasted from SWAT):
Code:
# Samba config file created using SWAT
# from 127.0.0.1 (127.0.0.1)
# Date: 2004/07/04 15:39:01

# Global parameters
[global]
	workgroup = HOME
	server string = Samba Server
	log file = /var/log/samba.%m
	max log size = 50
	load printers = No
	local master = No
	dns proxy = No

[printers]
	comment = All Printers
	path = /var/spool/samba
	printable = Yes
	browseable = No
I have nmbd and smbd -D running. What is wrong?
 
Old 07-04-2004, 08:02 AM   #2
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 79
I'm guesseing that you have 2 computers called HALA on your network. Try adding:
netbios name = uniquepc

Then restart samba and query "uniquepc" instead of "HALA".
 
Old 07-04-2004, 08:13 AM   #3
ivanatora
Member
 
Registered: Sep 2003
Location: Bulgaria
Distribution: Ubuntu 9.10, FreeBSD 7.2
Posts: 459

Original Poster
Rep: Reputation: 32
No, it is only one. It is on winXP if that does matter. Here are results from 2 more PCs, 1st on winME, 2nd on winXP too:
Code:
(16:13:08)[ivanatora@~]$ smbclient -N -L Nereza
session request to NEREZA failed (Called name not present)
session request to *SMBSERVER failed (Called name not present)
(16:13:12)[ivanatora@~]$ smbclient -N -L Joro
Domain=[DINALT] OS=[Windows 5.1] Server=[Windows 2000 LAN Manager]
tree connect failed: NT_STATUS_DUPLICATE_NAME
In my /etc/hosts there are entries for Nereza and Joro, binding them to their local IPs (10.10.10.7 and 10.10.10.8). I have such for Freeman.
 
Old 07-04-2004, 11:43 AM   #4
foo_bar_foo
Senior Member
 
Registered: Jun 2004
Posts: 2,553

Rep: Reputation: 53
well i think the short answer is that sambaclient connects to samba server
and windows machine don't run samba server -- linux machines do.

you mount a windows share from linux like this

mount -t smbfs -o username=xxx,password=xxx //server/share /mnt/share
 
Old 07-04-2004, 02:27 PM   #5
hasnain
Member
 
Registered: Jun 2004
Location: Karachi
Distribution: Redhat
Posts: 56

Rep: Reputation: 15
Smbclient

well im assuming that u have already configured samba server write this command on terminal

[root @localhost root] smbclient -L //clientname

[root @ localhost root] mount /home/asd /has

its that simple
 
Old 07-04-2004, 04:15 PM   #6
ivanatora
Member
 
Registered: Sep 2003
Location: Bulgaria
Distribution: Ubuntu 9.10, FreeBSD 7.2
Posts: 459

Original Poster
Rep: Reputation: 32
foo_bar_foo: I need smbclient at least to retrieve the list of windows shares. I can mount them later, but now I need only to view them. I doubt smbclient searches for samba server on the other side, well, samba is made to connect unix to windows shares. Windows doesn't have samba

PS. I just tried smbclient -L //deian and I got shares list. It runs win 98. But when I ty to list a winXP box, I got that error: tree connect failed: NT_STATUS_DUPLICATE_NAME

Last edited by ivanatora; 07-04-2004 at 04:17 PM.
 
Old 07-08-2004, 01:34 AM   #7
ivanatora
Member
 
Registered: Sep 2003
Location: Bulgaria
Distribution: Ubuntu 9.10, FreeBSD 7.2
Posts: 459

Original Poster
Rep: Reputation: 32
Someone has a clue?
 
Old 08-04-2004, 10:50 AM   #8
kedman
LQ Newbie
 
Registered: Feb 2003
Location: Cardiff
Distribution: Fedora core 3
Posts: 18

Rep: Reputation: 0
Quote:
Originally posted by ivanatora
Someone has a clue?

Hi I have the same problem and it seems if you have run win2l/xp with a dynamic ip as I did to start with
it seems stuck somewhere and you have 2 ip's.

I have restarted samba and the wintel box but it still shows up:

[bob@bear bob]$ nmblookup rob-copel
querying rob-copel on 192.168.1.255
192.168.1.99 rob-copel<00>


As you can see this box has two ips, although ipconfig /all shows only the correct ip
of 192.168.1.99

Any ideas how I get rid of the dynamic IP?
Cheers
Kedman
 
Old 08-03-2006, 08:52 AM   #9
Siftah
LQ Newbie
 
Registered: Nov 2002
Location: Manchester, UK
Distribution: Variety
Posts: 6

Rep: Reputation: 0
Code:
tree connect failed: NT_STATUS_DUPLICATE_NAME
I've just experienced this same problem, the fault lay with a missing DNS entry on the domain controller for the machine in question.

Adding a local entry to /etc/resolv.conf does not fix this, nor will it be fixed if the samba machine can resolve the domain, it also seems to need the PDC to be able to resolve it too.

HTH.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How to use SMBclient? cathodion Linux - Networking 4 12-22-2004 03:48 AM
why can't I mount with smbmount if i'm able to connect with smbclient? eantoranz Linux - Networking 3 12-17-2004 12:41 PM
smbclient - trying to connect to the network rtil Linux - Networking 12 12-14-2004 07:13 AM
smbclient subaruwrx Linux - Networking 7 09-02-2004 08:43 AM
Smbclient cannot connect to WinXP machine Xylon Slackware 10 10-02-2003 11:40 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 11:38 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration