Kodi Community Forum
Android Can't access SMB network shares in 20.3 - Operation not permitted in KODI only - Printable Version

+- Kodi Community Forum (https://forum.kodi.tv)
+-- Forum: Support (https://forum.kodi.tv/forumdisplay.php?fid=33)
+--- Forum: General Support (https://forum.kodi.tv/forumdisplay.php?fid=111)
+---- Forum: Android (https://forum.kodi.tv/forumdisplay.php?fid=164)
+---- Thread: Android Can't access SMB network shares in 20.3 - Operation not permitted in KODI only (/showthread.php?tid=375779)



Can't access SMB network shares in 20.3 - Operation not permitted in KODI only - locust - 2024-01-14

Hello all, Installed 20.3 on Nvidia Shield with no issues until it came time to access my network share which works across ALL platforms including the Shield device itself in all other apps.

Have tried adding a network location prefixed as smb://

have tried "add a new share" then choosing SMB and filling out all the fields manually

Already know the username and password are correct as I can quickly jump to VLC or any File Explorer app and access the exact same share with no issue

KODI reports "Operation not permitted" and is rather useless.

I run SAMBA myself on an Arch Linux VM on my network and as mentioned works across all other devices without a hitch - it's just Kodi.  I did some preliminary googling and saw mentions of something about protocol v2 or higher but see no reference on how to apply this via Samba.  Also, if I'm running latest Samba, would this not be the default?


Thanks kindly!

logfile: https://paste.kodi.tv/hidowayiso


RE: Can't access SMB network shared in 20.3 - Operation not permitted in KODI only - locust - 2024-01-14

I appended 
 
Code:
min protocol =  SMB2
protocol = SMB3

to the [global] section of /etc/samba/smb.conf with no success, done many full reboots during testing.

I appended the log file and searched for 'smb' to try and determine what's going on with no luck.  It's finding the correct IP address and should be able to sign in with the username & password provided; yet for some reason still reporting Operation not Permitted.  Username and password are absolutely valid and in use across many devices on my local network thus far!  Thank you

I do not use any pirate plugins or anything of the sort - this is a stock installation


RE: Can't access SMB network shares in 20.3 - Operation not permitted in KODI only - black_eagle - 2024-01-14

You need to enable the guest user as that is what Kodi uses to connect initially to get the list of shares.

See this thread for a clearer explanation.


RE: Can't access SMB network shares in 20.3 - Operation not permitted in KODI only - DiMag - 2024-01-21

I set up Kodi v20.3 (on an Android TV OS 11, the most difficult of all platforms) 3 days ago and my SMB shares on my QNAP NAS were browsable with no lag. On Kodi (ATV 11.0) the settings for the SMB service specify SMBv2 as minimum and SMBv3 as maximum protocol, and WS-Discovery service is enabled. I think the latter does the trick --- because there is only one account enabled on my QNAP, admin. guest is not just disabled, it is deleted.


RE: Can't access SMB network shares in 20.3 - Operation not permitted in KODI only - Zackey - 2024-01-21

Have you tried mounting your NAS/server as a  mapped drive on the shield (Settings/system/Storage/Mounted drives) and then kodi should see it as a local drive.  I also had to go into kodi permissions in the shield settings/apps and grant full time permissions to kodi to access media / files, before it would bring anything into my library.  I didn't have the same issues as you, but it resulted in much better lag free 4k playback.  Also, try both the IP address and the server name.


RE: Can't access SMB network shares in 20.3 - Operation not permitted in KODI only - nordicguy - 2024-01-21

Hi

I'd like to share my experience maybe it benefits others
I had similar issue with error "operation not permitted" when connecting my Kodi on Andriod to my NAS via SMB. I also found those posts about the SMB version and using guest user. the version didn't help but testing with a guest user worked.
I didn't like using a guest user to access my NAS even as a read only so I make a dedicated user on NAS just for Kodi Andriod and I gave it permission to those folders I want to be seen by Kodi. I made the same user on Kodi with same password and don't ask me what's the relation but it worked fine now

hope this helps
nordicguy


RE: Can't access SMB network shares in 20.3 - Operation not permitted in KODI only - Hatch - 2024-08-06

The way I got around having to add a guest user was to do the following:

Instead of choosing "Windows network (SMB)" option I chose "Add network location" and then used the SMB, added Server name, Username and password that I had for a RO user named "Media" on my server.

Hope that helps,
Hatch