cancel
Showing results for 
Search instead for 
Did you mean: 

File Authorizations

suraj_pabbathi2
Participant
0 Kudos

Hi Experts,

We are generating files from BODS onto Linux system using File format. It is writing the files with different permissions than its umask.

Umask is set to write the files as 644 (rw-r--r--), but it is writing the files with permissions as 640 (rw-r-----).

Hence it is avoiding other users to read the files.

Any ideas how to create the files as per the default setting? (644)

Thanks,
Suraj Pabbathi

Accepted Solutions (1)

Accepted Solutions (1)

suraj_pabbathi2
Participant
0 Kudos

Hi All,

The problem is solved, solution was provided by SAP through the OSS ticket.

For the benefit of others, Find the solution below.

Thanks, Suraj Pabbathi

~~~~~~~~~~~~~~~~~~~

If you look at LINK_DIR/bin_al_env.sh script you should see:

umask 027 towards the beginning.

Therefore every file that job server is creating on the server will

have rwxr-x---

Options;

- Stop DS Job Service by running svrcfg.

- Edit LINK_DIR/bin_al_env.sh to have umask 022 instead of umask 027

and save.

- source DS by running . ./al_env.sh at LINK_DIR/bin

- start DS job service from svrcfg.

- If you run the job now, the file with desired permissions would be

created. On the downside, every trace, error, monitor log or whichever

file is created by job server will have permissions so that everyone

will have read access to them.

I am not sure if umask can be set at directory level and thus if you

can set 2 separate umask values for 2 directories. The way the

permissions were restricted in al_env to 027 is for security. If you

wish to make it read access for everyone, you can do that keeping in

mind, all files created will now have read access.

Alternately you can create a script to modify the rights of the output

files created, that should run immediately after job finishes or you

can even invoke it from job.

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Former Member
0 Kudos

Hi All,

I am facing the same issue though I gave the umask value as 022 and now it is reflecting as 644.But we need to give full permission i.e 777 instead of 644.

Could you please let me know the umask value which would be equivalent to 777?

I found the below umask values and tried but 777 wasn't reflecting.

0 –Full permissions (Read, Write, Execute)

1 –Write and read

2 –Read and execute

3 –Read only

4 –Write and execute

5 –Write only

6 –Execute onlyadminadmin

7 –No permissions

Please suggest.

Thanks & regards,

Manish Chhetia

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi,

Can you clarify how do you generate files from DS, what method do you use?

Thanks

suraj_pabbathi2
Participant
0 Kudos

Hi Nawfal,

I have created File format, pulled it into the Job by selecting as Target. Its just any regular process.

Thanks,

Suraj

vnovozhilov
Employee
Employee
0 Kudos

I assume built-in exec() function which has chmod command inside could do the trick.

Thank you,

Viacheslav.

RR
Participant
0 Kudos

Hi viacheslav.novozhilov

Could you please post a sample command/syntax for exec() with chmod command on a file.

Thank you,

RR