cancel
Showing results for 
Search instead for 
Did you mean: 

Running chgrp for SAP Output Files

Former Member
0 Kudos

Hi All,

Have a situation I need some help with please.

We are integrating our SAP system with another application. As part of the process, the SAP system outputs a file to the OS. By default, this file is created with user SIDadm and group sapsys. The external user, however, is not part of the sapsys group, so therefore has no access. chmod 777 on the files nor adding the external user to sapsys are options.

I need to know if anyone knows how to run the chgrp command on the files created by SIDadm so the external user can grab them. Thanks!!!!

Accepted Solutions (0)

Answers (2)

Answers (2)

markus_doehr2
Active Contributor
0 Kudos

Write a script that checks every 5 minutes the directory where the files are placed and do a chgrp on the files with user root. Another option is to use an NFS server, mount the directory on that server and put the files there if you don´t want to fiddle with the groups and users on the SAP system.

--

Markus

Former Member
0 Kudos

Thanks guys. Issue resolved with a combination of running 'site umask 022' command when the file is sent to SAP, and now have a scheduled job that runs a chgrp -R appint <filepath> every 5 minites. It's not 100%, but it changes the group assignments correctly for the files, which is what we needed.

Appreciate everyone's input.

-Tim

former_member204746
Active Contributor
0 Kudos

consider setting up SM69 and an ABAP program using this.

or investigate change of "umask" to "022" in sidadm's login script, other users will be able to read the file but not delete or edit it.