Set umask/permissions for newly created directories

Support for Ubuntu and other Desktop Linux distributions
Post Reply
ofnbpm
Posts: 1
Joined: 10 May 2021, 05:26

Set umask/permissions for newly created directories

Post by ofnbpm »

In my scenario I'm running the `fn:amc` script through the filebot cli and I want to be able to control the permissions of the directories that filebot creates when it moves the files. How can I do this? Is it possible? Thank you!
User avatar
rednoah
The Source
Posts: 22923
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Set umask/permissions for newly created directories

Post by rednoah »

Presumably, the filebot process will inherit and use the umask of the current shell context. This should work for any tool or program that doesn't explicitly set the permissions one way or another.


If that doesn't work for you, then you can always use --def exec to call chown to explicitly set the file and folder permissions after processing:

Code: Select all

--def exec="echo {quote f}"
:idea: Please read the FAQ and How to Request Help.
Post Reply