Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
$ 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
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.
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
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
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.