Plex Permissions in FreeNAS 11.3

  2 minute read

Plex Media Server is a popular FreeNAS plugin that allows the user to stream media directly from their FreeNAS system. Because Plugins reside inside a jail, Plex must have access to the shared media files. These 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 or Sonarr to manage and share the centralized media.

When Plex is installed, its initial permissions are determined from the FreeNAS dataset permissions. 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. Now 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
  1. If files already exist in the dataset, set “Apply permissions recursively”.

  2. Click “Save”

  3. Connect to the Plex Media Server web interface and add media.

Other popular Plugin user IDs include:

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

Last modified February 9, 2021: Update (abf40d7d)