![]() |
Directories and directory permissions - Printable Version +- Jellyfin Forum (https://forum.jellyfin.org) +-- Forum: Support (https://forum.jellyfin.org/f-support) +--- Forum: General Questions (https://forum.jellyfin.org/f-general-questions) +--- Thread: Directories and directory permissions (/t-directories-and-directory-permissions) |
Directories and directory permissions - awake - 2025-03-31 Hello everyone! I've installed Jellyfin using Docker because setting it up with a compose file seemed to be the most straight forward way to do it. Howver, I've had some hiccups when it came to directory- and file-permissions. My compose file looks like the following with 1001 being the ID for my user and group (both having the same name (richard)): Code: services: As you can see, I'm mounting the media from the home directory. I'm at the same time I'm accessing the cinema directory from a computer with a user with elevated priviledges ("admin"). The problem occurs if I paste a file from my computer (via SMB, macOS is not particularly great in this area it seems but I diverge) into the cinema directory, it's being pasted with "admin" as user and group. This leads to "richard" not being able to play the file in Jellyfin and I have to chmod the newly added files/directories to be able to play the files.Should I move the entire mount point to a more public space such as /media and will this even solve my problem?
RE: Directories and directory permissions - TheDreadPirate - 2025-03-31 General speaking, I recommend against having media in your home directory if other users may be accessing your home directory. Your home directory is for private and sensitive files and no one else should have access to it. /media or /mnt are common places to host files and folders that many users will access. RE: Directories and directory permissions - awake - 2025-03-31 (2025-03-31, 03:31 PM)TheDreadPirate Wrote: General speaking, I recommend against having media in your home directory if other users may be accessing your home directory. Your home directory is for private and sensitive files and no one else should have access to it. Thank you for the heads up and quick answer! I think I will migrate today and see if it simplifies things for me. Since I don't have tons of media, I think it won't take that long, too. Would you move the config directories as well? Also when talking about best practices (knowing that this forum is not a place to discuss Linux things), would you recommend that I also move my personal files (e.g. family pictures and such) from the home directory of SMB shares? I know this is very far from Jellyfin and basically a data management question but since you seem to have at least any kind of opinion on this, I thought I could ask. RE: Directories and directory permissions - TheDreadPirate - 2025-03-31 (2025-03-31, 03:42 PM)awake Wrote: Would you move the config directories as well? Depends. Since the container runs as your user, its fine to leave it in your home directory. Personally, I keep all my container's data in a root level folder (/docker) since I run a bunch of containers, many that run as users other than me. It also simplifies backups to keep the containers all together. If you only intend to run Jellyfin, just leave your /config directory where it is. (2025-03-31, 03:42 PM)awake Wrote: Also when talking about best practices (knowing that this forum is not a place to discuss Linux things), would you recommend that I also move my personal files (e.g. family pictures and such) from the home directory of SMB shares? I know this is very far from Jellyfin and basically a data management question but since you seem to have at least any kind of opinion on this, I thought I could ask. Depends on whether your SMB share requires credentials or allows guest users. If you require credentials and prohibit guest users, it is probably fine. |