Plex Permissions in FreeNAS 11.3

Plex Media Server is a popular Plugin available for FreeNAS, allowing the user to stream media directly from their FreeNAS system. Because Plugins reside inside a jail, Plex must have access to the media files to be shared which are generally stored in a separate dataset that is mounted inside the Plex Plugin jail. A media dataset can also be mounted in multiple jails to allow access to other Plugins like Radarr, Sonarr, or Sabnzbd to manage and share the centralized media.

Once Plex is installed, its permissions will be in a default state set during the initial creation of a dataset on FreeNAS. Unless otherwise modified, this means the dataset will be owned by the user “root” and group “wheel”. Because Plex Media Server runs as the user “plex” in the default configuration, Plex will not be able to read or write to the media dataset and thus not be able to access the media files stored there. To create an ACL for the media dataset with the correct Plex user ID, first verify that user ID by running id plex in the Plugin Jail’s shell. This should be 972; with that information, launch the FreeNAS 11.3 ACL manager:

      1. Click the three dots next to the media dataset; in this example, it is called “media”
      2. Select “Edit ACL”
      3. Click the “Add ACL Item” button. A new section will appear at the bottom of the list of existing ACL items.
      4. Fill in the following:
        Who: User
        User: 972 (Don't worry if it says "Could not find a username for this ID")
        ACL Type: Allow
        Permissions Type:
        Basic Permissions: Full Control
        Flags Type: Basic
        Flags: Inherit

      5. If files already exist in the dataset, select the “Apply permissions recursively” checkbox.
      6. Click “Save”
      7. Add media in Plex Media Server through its web interface as normal

Other popular Plugin user ID’s include:

  • Radarr = 352
  • Sonarr = 351
  • Transmission = 921
  • Sabnzbd = 350

Visit the General Plugin Discussion in the FreeNAS Forums for more information and enjoy your media serving with FreeNAS!

11 Comments

  1. Steve

    I can’t see the option to edit ACLs. I click on the ellipsis at the end of my dataset under Storage>Pools and my options are Add Dataset, Add ZVol, Edit Options, Edit Permissions, Delete Dataset, and Create Snapshot.

    Running FreeNAS-11.3-RELEASE

    Any ideas?

    Thanks

    Steve

    Reply
    • Steve

      I’ve just checked again and the Edit ACL option is now there! I had only just updated to FreeNAS-11.3-RELEASE and it appears that a period of time was required for the web interface to update.

      Reply
      • Joon Lee

        It’s so satisfying when an issue resolves itself!

        Reply
  2. Michael Gallaher

    How do you do this if your “Media” dataset is at the root of the pool? The option to “Edit ACL” is disabled.

    Reply
    • Brian C

      Move your dataset off the root? Set a mount point to the original path if you are worried about breaking paths you have set in Plex.

      Reply
    • Joon Lee

      We don’t recommend keeping your media or any other data in the root pool, given that it home to iocage itself and the .system dataset. Moving your media to a dedicated dataset should solve the problem.

      Reply
  3. sepphod

    First: Why do I want that Plex can write on my media data? That seems to me like an error by design.
    second: I have the same issue like Steve.
    third: That new UI suck!

    thx

    Reply
  4. Simon

    I have edited the ACL’s as listed in the blog post, but Plex can still not read the folder where my media is. Any idea what I can do here?

    Reply
  5. Don

    Thank you very much!!! That worked perfectly fine for me!

    Reply
    • Joon Lee

      Thank you for your support! That’s great news!

      Reply

Submit a Comment

Your email address will not be published. Required fields are marked *

ESG Labs: TrueNAS Technical Report

iXsystems values privacy for all visitors. Learn more about how we use cookies and how you can control them by reading our Privacy Policy.