Hello,
I have a program that, as part of processing, uses open() to create a file.
From what I understand I can set the "Data Authorities" via the MODE flag on this call but the "Object Authorities" are inherited from the directory owner. Therefore if someone has cocked up the dir permissions, which I'm encountering currently, I can't do anything about this on the open() as I (the file owner) inherit the crap object permissions.
Am I understanding correctly here? If so, aside from using "GRTOBJAUT" or "CHGAUT", is there a way of altering "Object Authorities" with something else like chmod()? Or do I just have to use a QCMDEXC of CHGAUT?
Example of what I mean (unable to rename, delete, etc. file after creating it);
Cheers,
Ryan
I have a program that, as part of processing, uses open() to create a file.
From what I understand I can set the "Data Authorities" via the MODE flag on this call but the "Object Authorities" are inherited from the directory owner. Therefore if someone has cocked up the dir permissions, which I'm encountering currently, I can't do anything about this on the open() as I (the file owner) inherit the crap object permissions.
Am I understanding correctly here? If so, aside from using "GRTOBJAUT" or "CHGAUT", is there a way of altering "Object Authorities" with something else like chmod()? Or do I just have to use a QCMDEXC of CHGAUT?
Example of what I mean (unable to rename, delete, etc. file after creating it);
Code:
Data --Object Authorities-- Opt User Authority Exist Mgt Alter Ref *PUBLIC *RWX X X X X RDKELLS *RWX
Ryan
Comment