evox 7 Posted September 6, 2015 Share Posted September 6, 2015 Hello everybody I installed emby plugin on my freenas, tried to setup everything but the only problem is to download subtitles, it gives me this error (one example). Subtitles failed to download for X-MenAccess to the path "/HDD_media/Movies/Movies WMV HD/XMen 2000 1080p.eng.txt" is denied. System.UnauthorizedAccessException at System.IO.FileStream..ctor (System.String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, Boolean anonymous, FileOptions options) [0x00000] in :0 at System.IO.FileStream..ctor (System.String path, FileMode mode, FileAccess access, FileShare share) [0x00000] in :0 at (wrapper remoting-invoke-with-check) System.IO.FileStream:.ctor (string,System.IO.FileMode,System.IO.FileAccess,System.IO.FileShare) at MediaBrowser.Common.Implementations.IO.CommonFileSystem.GetFileStream (System.String path, FileMode mode, FileAccess access, FileShare share, Boolean isAsync) [0x00000] in :0 at MediaBrowser.Providers.Subtitles.SubtitleManager+c__async1.MoveNext () [0x00000] in :0 any help? Link to comment Share on other sites More sharing options...
josh4trunks 70 Posted September 6, 2015 Share Posted September 6, 2015 I'm guessing the user emby runs as doesn't have permissions to write to "/HDD_media/Movies/Movies WMV HD". This thread gives you every alternative to remediate this. https://forums.freenas.org/index.php?threads/how-to-giving-plugins-write-permissions-to-your-data.27273/ Link to comment Share on other sites More sharing options...
evox 7 Posted September 7, 2015 Author Share Posted September 7, 2015 or i am stupid but i can't get this working, can you give me a step by step or any help. Link to comment Share on other sites More sharing options...
josh4trunks 70 Posted September 8, 2015 Share Posted September 8, 2015 or i am stupid but i can't get this working, can you give me a step by step or any help. That guide is supposed to be a step by step. Please read and understand this https://www.freebsd.org/doc/handbook/permissions.html (chapter 3.4) Can you give the output when run in the emby jail. That will show who the current owner is and what the current permission levels are. ls -l /HDD_media/Movies ls -l /HDD_media/Movies/Movies\ WMV\ HD Link to comment Share on other sites More sharing options...
evox 7 Posted September 8, 2015 Author Share Posted September 8, 2015 That guide is supposed to be a step by step. Please read and understand this https://www.freebsd.org/doc/handbook/permissions.html (chapter 3.4) Can you give the output when run in the emby jail. That will show who the current owner is and what the current permission levels are. ls -l /HDD_media/Movies ls -l /HDD_media/Movies/Movies\ WMV\ HD total 117 drwxrwxr-x+ 2 1001 wheel 17 Sep 6 20:01 Movies ISO drwxrwxr-x+ 2 1001 wheel 25 Sep 4 19:55 Movies MKV HD drwxrwxr-x+ 2 1001 wheel 44 Sep 6 18:40 Movies WMV HD thanks for your help and your time, this is my output. looks that wheel is a system user from freenas and need to create a emby user with the same permissions level on freenas or i'm wrong Link to comment Share on other sites More sharing options...
josh4trunks 70 Posted September 11, 2015 Share Posted September 11, 2015 you don't have to create the user on freenas, but that is one possible solution. the current problem is that the 'emby' user can't write to that directory. it is only writable by UID 1001 and members of the wheel group. either make the directory world writable (solution 4), change the owner of the directory (solution 1), change the user Emby runs as (solution 2). Link to comment Share on other sites More sharing options...
evox 7 Posted September 14, 2015 Author Share Posted September 14, 2015 thanks for your help, it's working Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now