I have two users, one is an application user, through application is installed and one is a readonly user which is used by users to view log files.
There is an repetitive issue where I have to give permission to certian application logs to 755 recursively to be able to be viewed by user readonly.
uid=60000(apps) gid=8500(dba) groups=8500(dba)
-rwxr-xr-x 1 apps dba 630339 Oct 11 15:59 server.log
new files created with this user
touch a; ll a
-rw-r--r-- 1 apps dba 0 Oct 11 16:04 a
uid=502(readonly) gid=54321(oinstall) groups=54321(oinstall),60000(apps)
readonly user has been put into apps group. but could not write to the folder, which works as expected.
touch: cannot touch `a': Permission denied
But new files are created with permission 644 due to which they are not been able to be viewd by readonly user, and permissions have to be given recursicvely on folder with chmod -R 755 /path/to/log folder to make them viewable by readonly user.
Kindly suggest how to acheive that the files created by apps user in the logs folder will have permission of 755 or 750 so that readonly user can view them.