change directory permissions
Posted: 14 Jul 2017, 19:29
Hello,
I'm running a post process script on downloader.
jd is running on a ubuntu server and needs to be under root. Thanks to the the movie the permissions and the ownership of the movie itself is changed to greg:users, but the folder and also all the downloaded posters stays under root.
is there a way to change all the directory and the content permissions and ownership ?
I'm running a post process script on downloader.
Code: Select all
filebot -script fn:amc --output "$CONFIG_OUTPUT" --action move --conflict override -non-strict --log-file /var/log/filebot/amc-jdown.log --def movieFormat='Movies/{any{localize.French.collection/"($y) $localize.Fre.n - $vf.$vc.$ac"}{"($y) $localize.Fre.n - $vf.$vc.$ac"}}/{localize.Fre.n} ({y})' --def "exec=chmod -R 775 '{folder}/' ; chown -R greg:users '{folder}/'" --def music=n artwork=y subtitles=en ut_dir="$ARG_PATH" ut_kind="multi" ut_title="$ARG_NAME" ut_label="$ARG_LABEL"
Code: Select all
--def "exec=chmod -R 775 '{folder}/' ; chown -R greg:users '{folder}/'"
Code: Select all
-rw-r--r-- 1 root root 782660 Jul 1 15:10 clearart.png
-rw-r--r-- 1 root root 725675 Jul 1 15:10 disc.png
-rw-r--r-- 1 root root 196678 Jul 1 15:09 fanart.jpg
-rw-r--r-- 1 root root 400830 Jul 1 15:10 folder.jpg
-rw-r--r-- 1 greg users 10864880678 Jul 1 15:09 Les Figures de l'ombre (2016).mkv
-rw-r--r-- 1 root root 50871 Jul 1 15:10 logo.png
-rw-r--r-- 1 root root 5305 Jul 1 15:09 movie.nfo
-rw-r--r-- 1 root root 400830 Jul 1 15:09 poster.jpg