Systemd - Customizing Application Support folder (Metadata) - override.conf

@doreski

Ubuntu/Debian, with a graphical desktop, will always override the permissions & ownership of /media. The offending program is the automounter built into Nautilus. (It communicates with gnome-session, which runs as root, and has anything in there mounted / chowned with exclusive access by your username only which blocks ‘plex:plex’ from accessing it.

To avoid this problem, any other location can be used.

Might I suggest ?

  1. mkdir /home/plex
  2. chown plex:plex /home/plex
  3. mount your SSD to this location
  4. Change the override.conf to point to
    Environment="PLEX_MEDIA_SERVER_APPLICATION_SUPPORT_DIR=/home/plex/Library/Application Support"

Now you can move Library from /var/lib/plexmediaserver to /home/plex.

For reference (in case you need)