LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This 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


Reply
  Search this Thread
Old 04-26-2010, 09:30 AM   #1
DarkSlayer
Member
 
Registered: Apr 2008
Location: Tbilisi , Georgia
Distribution: Fedora, CentOS
Posts: 65

Rep: Reputation: 19
Exclamation 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
Software:
samba-3.0.33-3.15.el5_4.1
samba-client-3.0.33-3.15.el5_4.1
samba-common-3.0.33-3.15.el5_4.1
samba-swat-3.0.33-3.15.el5_4.1

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
 
Old 04-26-2010, 05:59 PM   #2
irishbitte
Senior Member
 
Registered: Oct 2007
Location: Brighton, UK
Distribution: Ubuntu Hardy, Ubuntu Jaunty, Eeebuntu, Debian, SME-Server
Posts: 1,213
Blog Entries: 1

Rep: Reputation: 88
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.
 
Old 04-27-2010, 01:19 AM   #3
DarkSlayer
Member
 
Registered: Apr 2008
Location: Tbilisi , Georgia
Distribution: Fedora, CentOS
Posts: 65

Original Poster
Rep: Reputation: 19
Question

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 View Post
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.
 
Old 04-27-2010, 02:25 AM   #4
DarkSlayer
Member
 
Registered: Apr 2008
Location: Tbilisi , Georgia
Distribution: Fedora, CentOS
Posts: 65

Original Poster
Rep: Reputation: 19
i mentioned that it works :

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
 
Old 04-27-2010, 02:48 AM   #5
Randeep
LQ Newbie
 
Registered: Apr 2010
Location: Bangalore
Distribution: Redhat, Centos
Posts: 25

Rep: Reputation: 0
have a look

Samba configuration:
http://helpinlinux.blogspot.com/2010...ure-samba.html

Samba-SWAT
http://helpinlinux.blogspot.com/2010...amba-swat.html
 
Old 04-27-2010, 06:46 AM   #6
DarkSlayer
Member
 
Registered: Apr 2008
Location: Tbilisi , Georgia
Distribution: Fedora, CentOS
Posts: 65

Original Poster
Rep: Reputation: 19
Question

thanks
but what does this mean ?
i read hundreds of such tuts

Quote:
Originally Posted by Randeep View Post
 
Old 04-27-2010, 07:03 PM   #7
irishbitte
Senior Member
 
Registered: Oct 2007
Location: Brighton, UK
Distribution: Ubuntu Hardy, Ubuntu Jaunty, Eeebuntu, Debian, SME-Server
Posts: 1,213
Blog Entries: 1

Rep: Reputation: 88
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.
 
Old 04-28-2010, 03:24 AM   #8
DarkSlayer
Member
 
Registered: Apr 2008
Location: Tbilisi , Georgia
Distribution: Fedora, CentOS
Posts: 65

Original Poster
Rep: Reputation: 19
Post

Quote:
Originally Posted by irishbitte View Post
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
 
Old 04-28-2010, 03:39 AM   #9
catkin
LQ 5k Club
 
Registered: Dec 2008
Location: Tamil Nadu, India
Distribution: Debian
Posts: 8,578
Blog Entries: 31

Rep: Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208
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.
 
  


Reply

Tags
failed, name, network, samba



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
tree connect failed: NT_STATUS_BAD_NETWORK_NAME nilantha Linux - Networking 17 11-05-2016 09:36 AM
[OpenBSD] samba: tree connect failed: NT_STATUS_BAD_NETWORK_NAME noir911 *BSD 0 07-26-2007 05:01 AM
Samba: tree connect failed: NT_STATUS_BAD_NETWROK_NAME Ryuu Linux - Networking 2 05-01-2007 11:47 AM
tree connect failed: NT_STATUS_BAD_NETWORK_NAME lostboy Linux - Networking 5 09-03-2004 07:44 AM
Samba problem..-tree connect failed.. cobrichka Red Hat 2 01-04-2004 12:00 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 04:49 AM.

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