LinuxQuestions.org
Help answer threads with 0 replies.
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 12-02-2017, 09:24 AM   #1
anon112
Member
 
Registered: May 2008
Distribution: Arch, FreeBSD
Posts: 116

Rep: Reputation: 17
Setting up Samba share: keep getting "tree connect failed: NT_STATUS_BAD_NETWORK_NAME"


Hello,

I've been trying to set up a Samba share on my local network but it's not working for some reason. I'm thinking that perhaps IPTables is blocking access for some reason. I was able to get this working before, but I've only recently started using IPTables and changed around my configurations a little. I am using Arch Linux for this.

The following is my output from `smbclient -L //10.11.0.1`:

Code:
	Sharename       Type      Comment
	---------       ----      -------
	steam           Disk      
	IPC$            IPC       IPC Service (server server (Samba, Ubuntu))
Reconnecting with SMB1 for workgroup listing.

	Server               Comment
	---------            -------

	Workgroup            Master
	---------            -------
	WORKGROUP            SERVER
My samba config file looks like this:

Code:
[global]
   workgroup = WORKGROUP
	server string = %h server (Samba, Ubuntu)

###NETWORKING###
interfaces = 10.11.0.0/24
bind interfaces only = yes

###DEBUGGING###
   log file = /var/log/samba/log.%m
   max log size = 1000
   panic action = /usr/share/samba/panic-action %d

###AUTHENTICATION###
   server role = standalone server
   passdb backend = tdbsam
   obey pam restrictions = yes
   unix password sync = yes
   passwd program = /usr/bin/passwd %u
   passwd chat = *Enter\snew\s*\spassword:* %n\n *Retype\snew\s*\spassword:* %n\n *password\supdated\ssuccessfully* .
   pam password change = yes
   map to guest = bad user

############ Misc ############
   usershare allow guests = yes

#======================= Share Definitions =======================
[printers]
   comment = All Printers
   browseable = no
   path = /var/spool/samba
   printable = yes
   guest ok = no
   read only = yes
   create mask = 0700

[steam]
    path = /srv/steam
    valid users = steam
    read only = no
    hosts allow = 10.11.0.0/24 127.0.0.0/8
    #bind interfaces only = yes

Output from `iptables -L`:
Code:
Chain INPUT (policy DROP)
target     prot opt source               destination         
ACCEPT     all  --  anywhere             anywhere            
ACCEPT     all  --  anywhere             anywhere             state RELATED,ESTABLISHED
ACCEPT     udp  --  anywhere             anywhere             udp spts:bootps:bootpc dpts:bootps:bootpc
ACCEPT     icmp --  anywhere             anywhere             icmp echo-request
ACCEPT     tcp  --  10.11.0.0/24         anywhere             tcp dpt:ssh
ACCEPT     tcp  --  10.11.0.0/24         anywhere             tcp dpt:microsoft-ds
ACCEPT     tcp  --  10.11.0.0/24         anywhere             tcp dpt:netbios-ns
ACCEPT     tcp  --  10.11.0.0/24         anywhere             tcp dpt:netbios-dgm
ACCEPT     tcp  --  10.11.0.0/24         anywhere             tcp dpt:netbios-ssn
DROP       tcp  --  anywhere             anywhere             tcp dpt:ssh
DROP       tcp  --  anywhere             anywhere             tcp dpt:microsoft-ds
DROP       tcp  --  anywhere             anywhere             tcp dpt:netbios-ns
DROP       tcp  --  anywhere             anywhere             tcp dpt:netbios-dgm
DROP       tcp  --  anywhere             anywhere             tcp dpt:netbios-ssn

Chain FORWARD (policy DROP)
target     prot opt source               destination         
ACCEPT     all  --  anywhere             anywhere             ctstate RELATED,ESTABLISHED
ACCEPT     all  --  anywhere             anywhere            
ACCEPT     all  --  anywhere             anywhere            
ACCEPT     udp  --  anywhere             anywhere             udp dpts:bootps:bootpc
ACCEPT     udp  --  anywhere             anywhere             udp dpts:bootps:bootpc

Chain OUTPUT (policy ACCEPT)
target     prot opt source               destination
My directory is at /srv/steam with the permissions set to `drwxr-xr-x 6 steam root 4096 Dec 2 16:51 steam` (from ls -al)

Is there something I'm doing wrong with this configuration? I can't mount the 'steam' directory with either mount.cifs or Windows and smbclient gives the "NT_STATUS_BAD_NETWORK_NAME" when I try to log in.
 
Old 12-02-2017, 04:08 PM   #2
anon112
Member
 
Registered: May 2008
Distribution: Arch, FreeBSD
Posts: 116

Original Poster
Rep: Reputation: 17
Got it working now -- the problem was that I was trying to mount the [steam] directory using //10.11.0.x/srv/steam whereas samba seems to prefer just mounting by the header, //10.11.0.x/steam.
 
  


Reply

Tags
config, file sharing, 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
[SOLVED] "net rpc" "failed to connect to ipc$ share on" or "unable to find a suitable server" larieu Linux - General 0 11-09-2014 12:45 AM
samba problem: tree connect failed: NT_STATUS_BAD_NETWORK_NAME DarkSlayer Linux - Newbie 8 04-28-2010 03:39 AM
[OpenBSD] samba: tree connect failed: NT_STATUS_BAD_NETWORK_NAME noir911 *BSD 0 07-26-2007 05:01 AM
tree connect failed: NT_STATUS_BAD_NETWORK_NAME lostboy Linux - Networking 5 09-03-2004 07:44 AM

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

All times are GMT -5. The time now is 01:06 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