Hello All,
Is anyone aware of "authorities" issues related to this API? I am creating .PDF files in the IFS area of our iSeries box and some users are unable to recreate a .PDF if they did not create it. In an attempt to avoid this I would like to use this API to "unlink" or "delete" this IFS object.
My concern is that I will run into object authority issues with it's use also?
Thanks,
Mark Schroeder
Software/Hardware used:
ASKED:
October 10, 2006 9:12 AM
UPDATED:
December 24, 2009 10:10 PM
authorities are pretty straight forward; the major issue is that the IFS does not support adopted authority. So, be sure that the user ID running the job has the proper authorities. To determine authorities, use WRKLNK.
Files on the IFS tend to have default authority of *PUBLIC EXCLUDE so if users are trying to delete files they did not actually create, they won’t have sufficient authority to do so. I suggest that after you create each file you use CHGAUT or chmod() to change the authority for either *PUBLIC or for a group to which all users belong to allow them to delete the file.