We would like to modify the data files created by the capman_da probe. All users should be able to read files that are created. Curently, only root has the rights to do so.
Release : 20.3
Component : UIM - CAPMAN_DA
The Capman probe does not set any permission mask when creating csv files. That means default permissions for new files depends on the umask configuration of the user in the OS.
1/
mask -S
The output of the command defines the permissions assigned by default to newly created files.
[email protected]:/apps/nimsoft/probes/system/capman_da$ umask -S
u=rwx,g=rx,o=
2/
touch /tmp/test_to_delete
ls -la /tmp/test_to_delete
rm /tmp/test_to_delete
What permissions are assigned to the file?
[email protected]:/apps/nimsoft/probes/system/capman_da$ ls -la /tmp/test_to_delete
-rw-r----- 1 root root 0 Apr 23 17:01 /tmp/test_to_delete
You need to modify the umask configuration for root user in the server.
Alternatively, you could configure a cron job every minute to change the permissions to 644 to all csv files in the folder.