You are not logged in.

#1 2014-04-13 08:21:39

maggie
Member
Registered: 2011-02-12
Posts: 255

deluged.service and access to download target on filesystem help

I am running deluged.service and told it to download to /media/downloads but how to I grant the deluge user permission to read/write to /media/downloads when my user owns that directory and the deluge user is not in my user group?

Offline

#2 2014-04-13 08:24:01

graysky
Wiki Maintainer
From: :wq
Registered: 2008-12-01
Posts: 10,600
Website

Re: deluged.service and access to download target on filesystem help

Might be an easier way, but see: http://xyne.archlinux.ca/notes/linux/sh … ctory.html

EDIT: This should really be covered in the deluge wiki page...
EDIT2: https://wiki.archlinux.org/index.php/De … .2Fuploads

Last edited by graysky (2016-11-26 22:06:42)


CPU-optimized Linux-ck packages @ Repo-ck  • AUR packagesZsh and other configs

Offline

#3 2014-04-13 08:32:20

maggie
Member
Registered: 2011-02-12
Posts: 255

Re: deluged.service and access to download target on filesystem help

Deluge will not download for me after trying the advice. What did I do wrong?

# chgrp deluge /media/downloads
# chmod g+s /media/downloads
# setfacl -d -m g:deluge:rwx /media/downloads
# getfacl /media/downloads
# ls -l /media
drwx--S---+  3 maggie deluge 4.0K Apr 13 05:33 downloads

Last edited by maggie (2014-04-13 08:42:58)

Offline

#4 2014-04-13 09:09:42

graysky
Wiki Maintainer
From: :wq
Registered: 2008-12-01
Posts: 10,600
Website

Re: deluged.service and access to download target on filesystem help

Not sure... another strategy is to add yourself to the 'deluge' group and make /media/downloads owned by you and that group.  Maybe someone else has a better idea.

Example as root:

usermod -a -G deluge maggie
mkdir /foo
chown -R maggie:deluge /foo
chmod 770 /foo
chmod g+s /foo

The last command will make new files and subdirectories inherit the group ID I believe.

Last edited by graysky (2014-04-13 09:11:34)


CPU-optimized Linux-ck packages @ Repo-ck  • AUR packagesZsh and other configs

Offline

Board footer

Powered by FluxBB