cancel
Showing results for 
Search instead for 
Did you mean: 

Restrict Access to File when being written on the Application Server

Former Member
0 Kudos

Hi All,

I have a requirement:

When I am writing the data to the file in the Application Server.

Only the owner should be given access and other users and groups should not have access to the file and after completing the write activity, the other users should be able to have the read access.

how do i achieve this?

Thanks,

Accepted Solutions (0)

Answers (1)

Answers (1)

markus_doehr2
Active Contributor
0 Kudos

> When I am writing the data to the file in the Application Server.

> Only the owner should be given access and other users and groups should not have access to the file and after completing the write activity, the other users should be able to have the read access.

You need to change the umask for the user running the application server (<sid>adm). This can be done by changing the .sh or .csh scripts in the home directory of the user.

To change the permissions you'll need to create a call to an external command (SM49) such as

chmod g+r <filename>

Markus