The question that I am unable to find answer for is as follows: How do I make any newly created file in a specific directory executable, readable and writable by all users.
So I've got an NFS, one application running as a root on a server, the application produces text files in the mounted directory and another process running on Windows Server instance (which has also NFS mounted) which consumes those files. In order to consume files, the process requires those files to have read,write and execute permissions. The motivation is: how do I make all files created by root user have rwx permissions by default?
Things that I've found and tried: 1. Changing the /etc/export file where the settings of NFS reside. Unfortunately this one does not work. 2. Changing the umask for root. And as far as I know it is not possible to enable 777 permissions by using umask and you can only subtract from 666 permissions. 3. Setting a crontab that would change permissions periodically. This won't suffice as the operation that requires permissions happens only once and, without permissions, the Windows process blocks.