search cancel

UIM - modify rights on files created by capman_da probe

book

Article ID: 214195

calendar_today

Updated On:

Products

DX Unified Infrastructure Management (Nimsoft / UIM)

Issue/Introduction

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.

Environment

Release : 20.3

Component : UIM - CAPMAN_DA

Resolution

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.