Bug 11052 - UNC Connect from Windows 8/Server 2012 Gets Error 0x80070057 When Viewing Effective Access
Summary: UNC Connect from Windows 8/Server 2012 Gets Error 0x80070057 When Viewing Eff...
Alias: None
Product: Samba 4.1 and newer
Classification: Unclassified
Component: File services (show other bugs)
Version: 4.1.14
Hardware: All All
: P5 normal (vote)
Target Milestone: ---
Assignee: Samba QA Contact
QA Contact: Samba QA Contact
Depends on:
Reported: 2015-01-13 21:30 UTC by samba.bugzilla
Modified: 2015-11-18 20:27 UTC (History)
1 user (show)

See Also:

View Effective Access Rights Fails (162.79 KB, application/octet-stream)
2015-01-14 01:45 UTC, samba.bugzilla
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description samba.bugzilla 2015-01-13 21:30:01 UTC
Connect to a Samba share from a Windows 8 or Windows Server 2012 client. Right click on a file in the share, and select Properties->Security->Advanced->Effective Permissions

You should see a window that allows selection of a User/Group or Device. Click on "Select a user"and a standard domain search box comes up. Enter a valid user for the Samba share you're connected to and press Enter. If multiple names come up just select the most appropriate one. The button below the select User/Group labeled "View effective access" will be enabled (it was greyed out before selecting a user).

Click on that button ("View effective access"). You will see a yellow box that says, "Computing effective access" which after a few seconds will change to "Code: 0x80070057 The parameter is Incorrect." and no rights are displayed.

This only happens with UNC mappings; mapping a drive letter _works_fine_ and doesn't give an error ("NET USE * \\sharename\filename" for example, then perform the above the above steps on a file on that drive letter).

Initial troubleshooting using Wireshark indicates it negotiates the SMB 3.0 dialect, but the packet stream doesn't show any obvious candidates for what the problem is. Samba NEVER returns error code 0x80070057; the Windows client is generating that for an unknown reason.
Comment 1 Jeremy Allison 2015-01-14 01:18:48 UTC
Can you upload the wireshark trace please ?
Comment 2 samba.bugzilla 2015-01-14 01:45:20 UTC
Created attachment 10619 [details]
View Effective Access Rights Fails
Comment 3 samba.bugzilla 2015-02-24 21:39:18 UTC
Microsoft has reproduced this bug in their lab and is researching the cause. It is possible that there might be unexpected behavior in the Windows 8 client in certain circumstances, but that is unknown. It could still turn out to be a Samba bug.

Microsoft KB: https://support.microsoft.com/kb/3041857
Comment 4 samba.bugzilla 2015-11-18 20:27:46 UTC
Microsoft issued a hotfix that resolves this issue. See the link in comment #3 to the Microsoft KB article that describes the issue; that KB article has links to the hotfix.