|
Exactly as Arlene Soderlund outlined in her response, I have done this many times for doing reporting on disk usage. AS/400 will only provide object descriptions if you are authorized to the objects. Clients didn't want me (or the operator) signed on always as qsecofr to gather disk data. So, created CLs that would dspobjd or dspfd or whatever, but the program used adopted authority, so no objects would be missed. Debbie Gallagher ______________________________ Reply Separator _________________________________ Subject: Re: ADOPTED AUTHORITY WITHIN CL Author: "asoderlund@NFCNA.COM" [SMTP:asoderlund@NFCNA.COM] at Internet-CA Date: 7/1/99 5:54 PM JGracetri@AOL.COM on 07/01/99 03:23:29 PM Please respond to MIDRANGE-L@midrange.com To: MIDRANGE-L@midrange.com cc: (bcc: Arlene M Soderlund/NFCNA.COM) Subject: Re: ADOPTED AUTHORITY WITHIN CL HAS ANYONE USED THIS. I HAVE A BATCH JOB WHICH IS RUN BY THE USER BUT NEEDS TO USE A FILE WITH SECURITY DENIED TO THE USER. SOMEWHERE I HEARD OR READ ABOUT ADOPT AUTHORITY, WOULD ALLOW THE JOB TO USE THE FILE IF THE ADOPTED AUTHORITY WAS GRANTED. Happens all the time in packaged software. Change the owner of the program to a profile that would have authority, then use the change program command with adopt authority *yes and usrprf *owner. CHGOBJOWN OBJ(PROGRAM) OBJTYPE(*PGM) NEWOWN(QSECOFR) CUROWNAUT(*SAME) CHGPGM PGM(PROGRAM) USRPRF(*OWNER) USEADPAUT(*YES) +--- | This is the Midrange System Mailing List! | To submit a new message, send your mail to MIDRANGE-L@midrange.com. | To subscribe to this list send email to MIDRANGE-L-SUB@midrange.com. | To unsubscribe from this list send email to MIDRANGE-L-UNSUB@midrange.com. | Questions should be directed to the list owner/operator: david@midrange.com +--- +--- | This is the Midrange System Mailing List! | To submit a new message, send your mail to MIDRANGE-L@midrange.com. | To subscribe to this list send email to MIDRANGE-L-SUB@midrange.com. | To unsubscribe from this list send email to MIDRANGE-L-UNSUB@midrange.com. | Questions should be directed to the list owner/operator: david@midrange.com +---
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2025 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.