You are not logged in.

#1 2016-11-26 10:31:31

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

Proper usage of deluged.service with filesystem permissions [SOLVED]

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:

usermod -a -G deluge graysky
mkdir /foo
chown -R graysky:deluge /foo
chmod 775 /foo
chmod g+s /foo

Example downloading the arch iso:

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

Note - this has been asked in this older thread but not fully resolved to my liking.

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


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

Offline

#2 2016-11-26 22:06:09

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

Re: Proper usage of deluged.service with filesystem permissions [SOLVED]

I edited the wiki with a solution: https://wiki.archlinux.org/index.php/De … .2Fuploads

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


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

Offline

#3 2016-11-26 23:28:07

Alad
Wiki Admin/IRC Op
From: Bagelstan
Registered: 2014-05-04
Posts: 2,412
Website

Re: Proper usage of deluged.service with filesystem permissions [SOLVED]

Might as well use setfacl


Mods are just community members who have the occasionally necessary option to move threads around and edit posts. -- Trilby

Offline

Board footer

Powered by FluxBB