Page 1 of 1

AMC Permissions Issues

Posted: 23 Nov 2013, 16:49
by chimpchimp
Hello,

I'm hoping someone with a bit more experience with Linux permissions could help me out with an issue I'm having with the AMC script. Here is my set up:

Deluge running on a Ubuntu Server install
Files are copied to a Synology NAS that is mounted via NFS
NAS also runs Plex


The problem I am running into is that when files are copied via the AMC script, they are not given proper execution rights so while Plex can read them, it will not play them back. For example:

-rw-rw---- 1 108 116 3232322254 Nov 23 11:40 Kick-Ass 2 (2013).mkv

I can manually got in and adjust the permissions and suddenly Plex has no issue but I'm not sure what might be going on with the script to cause the initial permission to be set incorrectly.

Any help would be greatly appreciated.

Re: AMC Permissions Issues

Posted: 23 Nov 2013, 17:28
by rednoah
Can't help you to figure out the original issue, but since you manually running chmod works, why not add --def exec and make the amc script chmod +something on the newly processed media files?

Re: AMC Permissions Issues

Posted: 23 Nov 2013, 19:21
by chimpchimp
Ah! I forgot you could execute from the script. I'll give that a try and see how it goes.

Re: AMC Permissions Issues

Posted: 23 Nov 2013, 22:01
by chimpchimp
After some fiddling I was able to get the file permissions working by adding the following to the script:

Code: Select all

--def "exec=chmod 775 '{file}'"
However, it seems the parent directory that gets created is having similar issues, is there a variable like {file} for the other folders that get created by amc?

Re: AMC Permissions Issues

Posted: 24 Nov 2013, 04:46
by rednoah
That would be {folder}. It's the same as the format expressions for naming.

Re: AMC Permissions Issues

Posted: 24 Nov 2013, 20:26
by chimpchimp
Got it working with:

Code: Select all

--def "exec=chmod 775 -R '{folder}'"
Thanks again for all your help!

Re: AMC Permissions Issues

Posted: 10 Apr 2016, 09:36
by guimello
I am having similar issues. Here is how I am calling the AMC script:

Code: Select all

bash filebot -script fn:amc --log-file ~/logs/amc.log --action move --conflict override --def "exec=chmod 775 -R '{folder}'" --def emby=192.168.0.128:51072559a5e04200a6260bf1106ef84f --def "movieFormat=/share/CACHEDEV1_DATA/Media/Movies/{n.upperInitial()} ({y}) {source}.{vf}.{vc}{'-'+group}/{fn}" --def unsorted=y clean=y -non-strict --def music=n artwork=y "/share/CACHEDEV1_DATA/Downloads/incoming/Movies"
But it's not creating the correct permissions in the new directory. Any ideas what the issue could be?