Unpack Plugin change permissions

peshua19

Member
May 25, 2018
897
0
16
Hello,

I would like the unpack plugin to extract the files and set their permissions to 0775 for the folder and 0660 for the files. Currently it is setting them at 0755 and 0644 respectivly which is causing permission errors when I try to delete as my normal user (over nfs).

Does anybody know how to achieve this?

Thanks in advance.
 

lisas4567

Member
May 25, 2018
773
0
16
yes, as novik said, setting umask it the way to go...you can try setting it in .rtorrent.rc but almost all unix systems let users set umask on thier home directory and i'm pretty sure rtorrent will respect the users umask.



umask is like a backwards permission set so 0000 umask = permissions of 0700 and a 0022 umask = permissions of 0755


the PROBLEM might come in where some extracts will preserve the permissions of the original files....to fix this you can set directories to respect specific umasks as well.
 

peshua19

Member
May 25, 2018
897
0
16
Hi Thanks for the quick response, it is much appreciated.

I think I get the reverse permissions but how would I set this is the rtorrent.rc as nothing to do with the unpack plugin is in there.

Cheers.