Plex Permissions in FreeNAS 11.3


February 18, 2020

NOTE: This is historical content that may contain outdated information.

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!

Share On Social: