× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



So for the archives, the condition of the somewhat generic 'can not perform requested operation' message CPFA0A2 for a CHGOWN may be the result of the PGP Authority for the object being set to the user which was requested to become the new owner of the object, and that is not allowed according to CPF220C. That would be much clearer if the code was changed [corrected?] to log the CPF220C as a preceding diagnostic.

For example:
> qsh cmd('ls /tmp > /tmp/lsout.txt')
> chgpgp '/tmp/lsout.txt' newpgp(qpgmr)
> chgown '/tmp/lsout.txt' newown(qpgmr)
msgMCH1011 T/QSYSPI1 TM/QSYAUTH TP/qsy_chgowner -- visible in trace
msgCPFA0A2 F/QSYCHOWN FM/QSYCHOWN FP/call_chgown -- again, from trace
msgCPFA0A2 F/QSYCODEUTL FM/QSYMSGS -- Escape manifest in joblog

> CRTDTAARA QTEMP/LGL *LGL /* User not QPGMR, no PGP, no GRPOWN */
> CHGOBJPGP QTEMP/LGL *DTAARA NEWPGP(QPGMR)
> CHGOBJOWN QTEMP/LGL *DTAARA NEWOWN(QPGMR)
msgMCH1011 T/QSYCHONR -- visible in trace
msgCPF220C F/QSYCHONR -- Escape manifest in joblog

Thus the above error, CPF220C issued for /QSYS.LIB objects using CHGOBJOWN requests, seems sufficiently equivalent with the described failure against an IFS object. The error message MCH1011 suggests one possible cause: 0000 - The profile cannot be the owner, it is already the primary group.

Regards, Chuck
-- All comments provided "as is" with no warranties of any kind whatsoever and may not represent positions, strategies, nor views of my employer

Ingvaldson, Scott wrote:
Correct. I never got a good explanation for this; we had to create a
new profile just to own objects because the group profile was already
the PGP for millions of IFS objects. The other option is to do a CHGPGP
NEWPGP(*NONE) before you do the CHGOWN.

Regards,
Scott Ingvaldson
System i Administrator
GuideOne Mutual Insurance Company


-----Original Message-----
From: David Gibbs [mailto:david@xxxxxxxxxxxx] Sent: Friday, May 25, 2007 11:19 AM
To: midrange-l@xxxxxxxxxxxx
Subject: Re: CPFA0A2 error on CHGOWN?

Ingvaldson, Scott wrote:
Deep in the dark depths of my feeble mind I recall running into this.
You're not trying to make the owner the same profile as the Primary group are you?

Actually, that's a distinct possibility.

According to the information I just received ... the existing file's
primary group is QPGMR, and the CHGOWN command appears to be changing
the owner to QPGMR.

I'm gathering that this is not allowed for some reason?

david


As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:
Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.