Skip to content

Instantly share code, notes, and snippets.

@shrayasr
Created September 15, 2017 04:48
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save shrayasr/0d2089439c4573db7e057cbb4b9356e7 to your computer and use it in GitHub Desktop.
Save shrayasr/0d2089439c4573db7e057cbb4b9356e7 to your computer and use it in GitHub Desktop.
permissions permissions permissions

Background

On the home server (yuksam henceforth), I have deluge running for torrenting and plex running as a media center.

Constraints

When torrenting, my method of consumption will be either plex or not-plex. If it is plex, then I want my downloads to go to X place. If it isn't plex, then they can go to a default location (currently /shares/t which is a samba share).

Currently

I just found out that you can add a "labels" plugin to deluge by which you can classify torrents and set location settings on them. So I queue a torrent, assign a plex-movies or a plex-music label and deluge should take care of moving the content there properly.

Problem

AKA PERMISSIONS PERMISSIONS PERMISSIONS.

Deluge is a daemon and will be running as init (I think?). Plex is indexing content from the home dir of a plexie user. Everytime I go and finish a torrent I'm doing a sudo chown -R plexie /home/plexie/media which is @gif shudder feeling for me.


Help?


Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment