Page 1 of 1

Proper usage of deluged.service with filesystem permissions

Posted: Sat Nov 26, 2016 11:10 am
by graysky
The deluge.service runs as the deluge user. What is the best way to avoid needing to `sudo chown graysky:users /foo/bar` once the resulting file has been downloaded via deluge?

I setup /foo for the deluged.service to use as follows, but again, files created there are owned by 125:125:

Code: Select all

usermod -a -G deluge graysky
mkdir /foo
chown -R graysky:deluge /foo
chmod 775 /foo
chmod g+s /foo
Example downloading the arch iso:

Code: Select all

ls -lh /foo
-rw-r--r-- 1 deluge deluge 746M Nov 26 05:33 archlinux-2016.11.01-dual.iso

Re: Proper usage of deluged.service with filesystem permissions

Posted: Sat Nov 26, 2016 12:45 pm
by Cas

Re: Proper usage of deluged.service with filesystem permissions

Posted: Sat Nov 26, 2016 9:34 pm
by graysky
Thanks for the tip. Can you confirm that
1) The physical dir itself needs to be owned by the deluge user.
2) It needs permissions of at least 770 if another user in the deluge group is allowed to rename and mv files.

If so I am glad to edit the wiki page (see on the Arch WIki I just modified).