You are not logged in.

#1 2017-10-08 00:32:00

wdirksen
Member
From: New Zealand
Registered: 2012-02-23
Posts: 105

Samba share recently no longer working with NT_STATUS_BAD_NETWORK_NAME

Hi All,

I have been running a simple anonymous samba share for years on my up to date Arch based media server without issue. Recently in the past few weeks it has broke and I can't find the issue. The shares are not avaiable in any client in the house anymore, linux, rpi, windows. I do understand there is a SMB v3 problem going around with latest 4.13 ARCH kernel but my server is using LTS at 4.9. The smb.conf has been the same for years and I have tried a number changes in the global section to no avail. Here's the Relevant info...

smb.conf

[global]
workgroup = *removed*
server string = Samba Server %v
netbios name = server
security = user
map to guest = bad user
dns proxy = no
unix charset = UTF-8
hosts allow = 127. 10.0.
strict allocate = yes

#============================ Share Definitions ============================== 

[Anonymous]
path = /media/storage
browsable =yes
writable = yes
guest ok = yes
read only = no
create mode = 0777
directory mode = 0777

The following shows the share is being served:

[mythtv@server ~]$ smbclient -L localhost
Enter *******\mythtv's password: 

	Sharename       Type      Comment
	---------       ----      -------
	Anonymous       Disk      
	IPC$            IPC       IPC Service (server)
Reconnecting with SMB1 for workgroup listing.

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

	Workgroup            Master
	---------            -------
	*removed*              SERVER 

But the following is giving the following error:

[mythtv@server ~]$ smbclient -N //localhost/MySharedFiles
Anonymous login successful
tree connect failed: NT_STATUS_BAD_NETWORK_NAME

I'm assuming this is the problem. I have no idea what the above output would have looked like when it did work fine. So I googled NT_STATUS_BAD_NETWORK_NAME and found mostly very old comments regarding directory pathway permissions. However I keep all my media files set to 777 to minimize accessability problems. I  just ran a chown to default user and its group and chmod to 777 but error persists.

Log is unremarkable...

[2017/10/02 21:12:06.965722,  0] ../lib/util/become_daemon.c:124(daemon_ready)
  STATUS=daemon 'smbd' finished starting up and ready to serve connections
[2017/10/08 10:46:59.734898,  0] ../lib/util/become_daemon.c:124(daemon_ready)
  STATUS=daemon 'smbd' finished starting up and ready to serve connections

testparm looks OK

[mythtv@server ~]$ testparm
Load smb config files from /etc/samba/smb.conf
Processing section "[Anonymous]"
Loaded services file OK.
Server role: ROLE_STANDALONE

Press enter to see a dump of your service definitions

Any help greatly appreciated

Last edited by wdirksen (2017-10-08 03:18:58)


Research | Trial | Make Mistakes | Ask questions | Learn | Repeat

Offline

Board footer

Powered by FluxBB