During my migration from Windows Server 2003 to Server 2012, I encountered an issue with Kodi on Raspberry Pi and how it connects to the Win 2012 file share. When accessing the server with a Samba file share instead of a prompt for credentials the error message “Operation not permitted” is displayed.
Kodi allows the manual adding of network locations but does not support adding the credentials that are needed to access the location.
Therefore a bit of tweaking is needed to get access to Windows 2012 shares on Kodi.