Closed zero77 closed 1 month ago
I would also like to request this feature. Right now, I am using qbittorrent-nox on a server, and it is a bit of a pain that I can't modify any files.
As a workaround, you can set this script to run on torrent completion:
#!/bin/bash
# Update permissions
find "$1" -type f -exec chmod 666 -- {} +
find "$1" -type d -exec chmod 777 -- {} +
Enable 'run external program on torrent completion' option in settings, and set it to: /bin/bash /path/to/script.sh "%F"
Another alternative could be to set the default permissions of the downloads directory. New files created in the directory will inherit these permissions. More info can be found here
From the article:
chmod g+s <directory> //set gid
setfacl -d -m g::rwx /<directory> //set group to rwx default
setfacl -d -m o::rx /<directory> //set other
And verify the defaults with:
getfacl /<directory>
Output:
# file: ../<directory>/
# owner: <user>
# group: media
# flags: -s-
user::rwx
group::rwx
other::r-x
default:user::rwx
default:group::rwx
default:other::r-x
It would be nice to also have USER/GROUP control as well but that can be easily automated with a script.
You can also configure Run external program on torrent completion
to have:
chmod -R 770 "%F/"
@eegeeZA @Dapennsta @chibicitiberiu Thanks
You can also configure
Run external program on torrent completion
to have:chmod -R 770 "%F/"
2023 and that's still a great hack/solution while the application still can't set up permissions after downloading :)
It's even not so great, as it permits execution of downloaded files. It should be implemented properly within a client.
Can you please add the option to automatically change the file permissions of the downloads once they have been removed. Thanks