I have a program on Ubuntu Linux that creates a
logs/error.log file with a permissions
rw-r-----). But I want the file permissions always to be
rw-rw-rw-) (including when the program creates the file).
- I can't modify the program. Therefore, I can't change
660mode using by the program for a new files.
- The program can recreate the file at any time. Therefore, the solution with a single manual execution of
chmodis not suitable.
- I need to add a bits of permissions, but not subtract. Therefore,
setfaclare not suitable.