Search the Community
Showing results for tags 'folder permissions'.
-
Hi People, I've just got into Emby and the more I use it the more I love it. I'm trying to get the folder permissions right once and for all as at the moment iàm having to run a chmod 770 on the media directory every time I add media which is not handy. I would just like all the contents to inherit the file permissions of the main directory. Now i know this may be more of a LInux OS question but I post it here as I want to make sure Emby server is happy with this level of settings. At the moment I have a Movies folder that belongs to "emby" group and "antonio" (a normal unix user that is the admin user of the emby server) is member of that group. I set the sticky bit on te "Movies" folder with: chmod g+s Movies so that I have: drwxrwsr--+ 21 antonio emby 4096 nov 10 11:50 Movies You'll see that I have access control set on this folder which I did with the following two commands: setfacl -d -m g::rwx /<directory> //set group to rwx default setfacl -d -m o::r /<directory> //set other After doing this, I created a folder in the MOvies directory via terminal mkdir Baaria (2009) So that: drwx--S---+ 2 antonio emby 4096 nov 10 11:51 Baaria (2009) and the file inside this folder: -rw------- 1 antonio antonio 2098558137 apr 15 2015 Baaria (2009).m4v When I run the getfacl command on the Movies folder, I get: # file: Movies/ # owner: antonio # group: emby # flags: -s- user::rwx group::rwx other::r-- default:user::rwx default:group::rwx default:other::r-- EMBY doesn't seem to be happy with the newly created folder permissions (see below) not quite sure why though. I'm sure this is to do with my ignorance on the unix file system management and the use of the setfacl command or maybe I'm just overcomplicating things. Any suggestions? Thanks Antonio 2015-11-10 11:51:21.0640 Error - App: Error resolving path /exports/zeusmedia/Movies/Baaria (2009) *** Error Report *** Version: 3.0.5781.0 Command line: /usr/lib/emby-server/MediaBrowser.Server.Mono.exe -programdata /var/lib/emby-server -ffmpeg /usr/bin/ffmpeg -ffprobe /usr/bin/ffprobe -restartpath /usr/lib/emby-server/restart.sh Operating system: Unix 3.2.0.4 Processor count: 2 64-Bit OS: False 64-Bit Process: False Program data path: /var/lib/emby-server Mono: 4.0.3 (Stable 4.0.3.20/d6946b4 Wed Aug 19 11:56:04 UTC 2015) Application Path: /usr/lib/emby-server/MediaBrowser.Server.Mono.exe Access to the path "/exports/zeusmedia/Movies/Baaria (2009)" is denied. System.UnauthorizedAccessException at System.IO.Directory+<EnumerateKind>c__Iterator0.MoveNext () [0x00000] in <filename unknown>:0 at System.IO.DirectoryInfo+<CreateEnumerateDirectoriesIterator>c__Iterator0.MoveNext () [0x00000] in <filename unknown>:0 at System.Linq.Enumerable+<CreateSelectIterator>c__Iterator10`2[System.IO.DirectoryInfo,CommonIO.FileSystemMetadata].MoveNext () [0x00000] in <filename unknown>:0 at System.Linq.Enumerable+<CreateConcatIterator>c__Iterator1`1[CommonIO.FileSystemMetadata].MoveNext () [0x00000] in <filename unknown>:0 at MediaBrowser.Controller.Providers.DirectoryService.GetFileSystemDictionary (System.String path, Boolean clearCache) [0x00000] in <filename unknown>:0 at MediaBrowser.Controller.Providers.DirectoryService.GetFileSystemDictionary (System.String path) [0x00000] in <filename unknown>:0 at MediaBrowser.Controller.IO.FileData.GetFilteredFileSystemEntries (IDirectoryService directoryService, System.String path, IFileSystem fileSystem, ILogger logger, MediaBrowser.Controller.Library.ItemResolveArgs args, Int32 flattenFolderDepth, Boolean resolveShortcuts) [0x00000] in <filename unknown>:0 at MediaBrowser.Server.Implementations.Library.LibraryManager.ResolvePath (CommonIO.FileSystemMetadata fileInfo, IDirectoryService directoryService, MediaBrowser.Controller.Entities.Folder parent, System.String collectionType) [0x00000] in <filename unknown>:0 at MediaBrowser.Server.Implementations.Library.LibraryManager+<ResolveFileList>c__AnonStorey1B.<>m__0 (CommonIO.FileSystemMetadata f) [0x00000] in <filename unknown>:0