samba problem: tree connect failed: NT_STATUS_BAD_NETWORK_NAME
Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
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.
samba problem: tree connect failed: NT_STATUS_BAD_NETWORK_NAME
Hi everyone.
Yes i've already checked all topics regarding this problem, but nothing worked for me !!!
SO:
Code:
smbclient //localhost/home/recor -U recor
Password:
Domain=[xxxxxx] OS=[Unix] Server=[Samba 3.0.33-3.15.el5_4.1]
tree connect failed: NT_STATUS_BAD_NETWORK_NAME
also tried it's ip instead localhost
Can't connect from Windows machine as well
Firewall Disabled!
Selinux Disabled!
Auth type: user
System user recor:x:2002:2002::/home/recor:/bin/bash
smbpasswd -a recor
Share permissions are /home/recor = 777
I don't think that workgroup MYGROUP left by default should interfere samba working and connecting to localhost.
But windows network is under Win2k3 DC.
testparm:
Code:
Load smb config files from /etc/samba/smb.conf
Processing section "[recordings]"
Loaded services file OK.
Server role: ROLE_STANDALONE
Press enter to see a dump of your service definitions
[global]
workgroup = MYGROUP
server string = Samba Server Version %v
passdb backend = tdbsam
log file = /var/log/samba/%m.log
max log size = 5120
cups options = raw
[recordings]
comment = Recordings
path = /home/recor
valid users = recor
read only = No
smb.conf all other staff in conf file is commented, if requested will place whole conf file.
Code:
#======================= Global Settings
[global]
# ----------------------- Network Related Options -------------------------
workgroup = MYGROUP
server string = Samba Server Version %v
; netbios name = MYSERVER
; interfaces = lo eth0 192.168.12.2/24 192.168.13.2/24
; hosts allow = 127. 192.168.12. 192.168.13.
# --------------------------- Logging Options
# logs split per machine
log file = /var/log/samba/%m.log
# max 50KB per log file, then rotate
max log size = 5120
# ----------------------- Standalone Server Options
security = user
passdb backend = tdbsam
encrypt passwords = yes
[recordings]
comment = Recordings
path = /home/recor
browseable = yes
public = no
writable = yes
valid users = recor
If your windows workstations are joined to a Win2K3 domain, the file server, that is, your samba server, must be joined to that domain also, as a domain file server. Samba is capable of doing this. You won't be able to connect to the samba server from a domain joined pc, unless the server is also a part of the domain.
Ok it could be problem with win stations
but what about connecting to localhost ???
why during connection to localhost i'm getting same error tree connect failed: NT_STATUS_BAD_NETWORK_NAME ?
Quote:
Originally Posted by irishbitte
If your windows workstations are joined to a Win2K3 domain, the file server, that is, your samba server, must be joined to that domain also, as a domain file server. Samba is capable of doing this. You won't be able to connect to the samba server from a domain joined pc, unless the server is also a part of the domain.
i can access samba server from: My network Places => Microsoft Windows Network => Mygroup(samba) => server => share
but i can't access to it directly from explorer like \\192.168.3.250\home\share
and still can't login to samba localhost from same server
tried all path combinations and slashes
is your samba server joined to the windows domain? If it is, then the 'workgroup' parameter needs to be the same as the domain name. Also, is localhost blocked for some reason? There is a simple solution. I recommend getting a test machine, setting up a samba server on it from scratch, say, standard ubuntu samba. Then get it working on the domain to your requirements, and compare the two conf files. That's what I'd do. If there is no difference, you need to look wider, at DNS resolution and such. Windows networks are a pain in the ass, my bet is the samba server is working to spec, and there is some silly setting on the domain controller messing you about.
is your samba server joined to the windows domain? If it is, then the 'workgroup' parameter needs to be the same as the domain name. Also, is localhost blocked for some reason? There is a simple solution. I recommend getting a test machine, setting up a samba server on it from scratch, say, standard ubuntu samba. Then get it working on the domain to your requirements, and compare the two conf files. That's what I'd do. If there is no difference, you need to look wider, at DNS resolution and such. Windows networks are a pain in the ass, my bet is the samba server is working to spec, and there is some silly setting on the domain controller messing you about.
it's not joined to Win Domain
you can almost always get resources from share if you have proper auth info. in this case Username and Password, no restriction like "man you should be part of Domain or get out of here"
i don't know why localhost is blocked and not working
system is CentOS 5.3 based Elastix 1.6 VoIP system
Samba with all it's tools and dependencies was installed by me from scratch via yum. coz it's not included in elastix.
i can access share spending lil much time from My Network Places, against secs using \\192.168.3.250\share in explorer
A good first testing step is to use smbclient with the -L option at the command line on the samba server. BTW, when posting an smb.conf file, the most convenient way is to post the output of testparm -s.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.