What's wrong with permissions? [d---------+ 1 root root]

Support for Synology NAS, QNAP NAS and other Embedded Linux systems
Post Reply
fbotuser
Posts: 15
Joined: 30 Dec 2019, 20:55

What's wrong with permissions? [d---------+ 1 root root]

Post by fbotuser »

Hi,
using filebot in synology for a long time. Everything worked fine. Some days ago I updated filebot to the latest version and from that day something's wrong.


First of all filebot can't read volume1/multimedia folder. I checked permissions and filebot had no permissions (why?). So I added rw permissions to filebot.

Now I'm getting this error (filebot has permissions to volume1/sync folder).

Code: Select all

filebot -script 'fn:amc' /volume1/sync/ --output /volume1/Multimedia --action duplicate -non-strict --order Airdate --conflict auto --lang en --def 'music=y' 'unsorted=y' 'skipExtract=y' 'plex=10.31.0.200:YxDyes5xyy8dH5UbwwcS' 'seriesFormat={plex}' 'movieFormat=Movies/{plex.name}' 'excludeList=.excludes' --apply refresh --log all --log-file '/var/packages/filebot-node/var/filebot.log'

------------------------------------------

Run script [fn:amc] at [Fri Apr 07 14:54:19 CEST 2023]

[PSA] Important Discussion of Proposed Changes:
https://www.filebot.net/forums/viewtopic.php?t=13406

Parameter: music = y
Parameter: unsorted = y
Parameter: skipExtract = y
Parameter: plex = *****
Parameter: seriesFormat = {plex}
Parameter: movieFormat = Movies/{plex.name}
Parameter: excludeList = .excludes
Argument[0]: /volume1/sync
Use excludes: /volume1/Multimedia/.excludes (3)
Ignore system path: /volume1/sync/@eaDir
Permission denied: /volume1/sync/Luther S01-S05 720p CZ/S01
Permission denied: /volume1/sync/Luther S01-S05 720p CZ/S01
Permission denied: /volume1/sync/Luther S01-S05 720p CZ/S02
Permission denied: /volume1/sync/Luther S01-S05 720p CZ/S02
Permission denied: /volume1/sync/Luther S01-S05 720p CZ/S03
Permission denied: /volume1/sync/Luther S01-S05 720p CZ/S03
Permission denied: /volume1/sync/Luther S01-S05 720p CZ/S04
Permission denied: /volume1/sync/Luther S01-S05 720p CZ/S04
Permission denied: /volume1/sync/Luther S01-S05 720p CZ/S05
Permission denied: /volume1/sync/Luther S01-S05 720p CZ/S05
No files selected for processing
Done ¯\_(ツ)_/¯
User avatar
rednoah
The Source
Posts: 22923
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: What's wrong with permissions?

Post by rednoah »

It's definitely a permission issue:

Code: Select all

Permission denied: /volume1/sync/Luther S01-S05 720p CZ/S01
:!: Note that Synology uses ACLs which supercede traditional POSIX / chmod permissions, and so there's two layers of permissions that both need to allow the requested operation.


:?: What ACL permissions do you see in the Synology Permission Manager?


:?: What Unix permissions do you see with the ls -l command?


:arrow: I'd start by creating a new share with pristine permissions, grant permissions, and then see if that works:
rednoah wrote: 10 Jul 2014, 06:56 Package Permissions:
DSM 6.2.4 and DSM 7.0 restrict file system access by default. FileBot Node may not be able to access your files unless you explicitly grant permission first.

Image
:idea: Please read the FAQ and How to Request Help.
fbotuser
Posts: 15
Joined: 30 Dec 2019, 20:55

Re: What's wrong with permissions?

Post by fbotuser »

thank you.
Permissions: https://drive.google.com/file/d/1I1xvuE ... sp=sharing

ls -l shows me:
d---------+ 1 root root 364 Apr 7 13:04 sync
all folders have root:root
User avatar
rednoah
The Source
Posts: 22923
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: What's wrong with permissions?

Post by rednoah »

d--------- means no read/write permissions for anyone, and so mystery solved. Well, the next mystery is how you ended with these permissions. The likely culprit is the software that you use to sync files to your /volume1/sync folder.


:idea: You can use the chmod tool to fix permissions:
https://phoenixnap.com/kb/chmod-recursive


:idea: If you're using rsync to sync files, then you can force permissions for transferred files with the --chmod option:

Code: Select all

--chmod='Du=rwx,Dg=rx,Do=rx,Fu=rw,Fg=r,Fo=r'
** other sync tools may have similar options
:idea: Please read the FAQ and How to Request Help.
fbotuser
Posts: 15
Joined: 30 Dec 2019, 20:55

Re: What's wrong with permissions? [d---------+ 1 root root]

Post by fbotuser »

thank you so much, works perfect now.

I'm using pget and mirror to download some files from another server.
Post Reply