on 07-15-2013 7:55 PM
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
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.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
Hi,
Can you clarify how do you generate files from DS, what method do you use?
Thanks
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I assume built-in exec() function which has chmod command inside could do the trick.
Thank you,
Viacheslav.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
88 | |
10 | |
10 | |
9 | |
7 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.