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:
- Click the three dots next to the media dataset; in this example, it is called “media”
- Select “Edit ACL”
- Click the “Add ACL Item” button. A new section will appear at the bottom of the list of existing ACL items.
- Fill in the following:
User: 972 (Don't worry if it says "Could not find a username for this ID")
ACL Type: Allow
Basic Permissions: Full Control
Flags Type: Basic
- If files already exist in the dataset, select the “Apply permissions recursively” checkbox.
- Click “Save”
- 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!