[Samba] smbcacls got error NT_STATUS_NETWORK_NAME_DELETED

Ralph Böhme slow at samba.org
Fri Jun 9 04:38:01 UTC 2017


On Thu, Jun 08, 2017 at 02:40:49PM -0700, Jeremy Allison wrote:
> On Thu, Jun 08, 2017 at 06:43:34PM +0200, Ralph Böhme via samba wrote:
> > Hi Andy,
> > 
> > On Thu, Jun 08, 2017 at 09:23:50AM -0700, Andy Qian via samba wrote:
> > > The smbcacls cmd worked before till recently. Due to the recent Windows
> > > patch which disables SMB v1, we have to add the following line into the
> > > [global] section in smb.conf file on Linux machine so that the smbcacls can
> > > talk to the Windows server otherwise it gets error
> > > NT_STATUS_CONNECTION_RESET:
> > > 
> > > client max protocol = SMB3
> > > 
> > > with this option added, the smbcacls cmd ran into error
> > > NT_STATUS_NETWORK_NAME_DELETED.
> > 
> > it's a bug in smbcacls. For some reason, when using protocol level > 1 it issues
> > create calls on an invalid, just closed IPC tree connect, instead of the still
> > connected share.
> > 
> > Just ran into this today (but have seen it earlier) when passing -m smb3 on the
> > command line. Shouldn't be too hard to fix this, just didn't have the time.
> 
> Just tried but couldn't reproduce this against an smbd server running
> master. Ralph, do you have a reproducer ?

$ ./bin/smbcacls -m smb3 -U slow%x //localhost/share "" -a "ACL:SLOWSERVER\slow:ALLOWED/0x0/READ"
Failed to open \: NT_STATUS_NETWORK_NAME_DELETED
$

Cheerio!
-slow



More information about the samba mailing list