Proper usage of deluged.service with filesystem permissions

General support for problems installing or using Deluge
Post Reply
graysky
Leecher
Leecher
Posts: 54
Joined: Sun Oct 05, 2008 11:28 am

Proper usage of deluged.service with filesystem permissions

Post 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
Cas
Top Bloke
Top Bloke
Posts: 3681
Joined: Mon Dec 07, 2009 6:04 am
Location: Scotland

Re: Proper usage of deluged.service with filesystem permissions

Post by Cas »

graysky
Leecher
Leecher
Posts: 54
Joined: Sun Oct 05, 2008 11:28 am

Re: Proper usage of deluged.service with filesystem permissions

Post 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).
Post Reply