+ Reply to Thread
Results 1 to 2 of 2

Thread: Adopt authority

  1. #1
    Guest.Visitor Guest

    Default Adopt authority

    Vincent, Here is an example CL program that enables a user profile.
     PGM PARM(&USRPRF) DCL &USRPRF *CHAR LEN(10) DCL &MESAGE *CHAR LEN(80) CHKOBJ OBJ(QSYS/&USRPRF) OBJTYPE(*USRPRF) MONMSG MSGID(CPF9801) EXEC(DO) CHGVAR VAR(&MESAGE) VALUE('USERID- ' *CAT &USRPRF + *BCAT ' NOT FOUND.') SNDPGMMSG MSG(&MESAGE) TOPGMQ(*EXT) GOTO END ENDDO CHGUSRPRF USRPRF(&USRPRF) STATUS(*ENABLED) END: ENDPGM 
    When you compile the program, set the USEADPAUT parameter to *YES. Then change the owner of the program to the Security Officer or Sec Admin using the CHGOBJOWN command. Mark McCall
    On Friday, September 18, 1998, 07:36 AM, vincent wrote: How to grant the adopt authority to operator ids in order for them to only enable their passwords or other passwords without using security administrator id??

  2. #2
    Guest.Visitor Guest

    Default Adopt authority

    When I did adopted authority on programs, the parameter to use on the compile was USRPRF(*OWNER). Then, as Mark mentioned, make the owner the Security Officer or Security Administrator. Setting this parameter causes the program to run under the authority of the owner (now SECOFR or whatever) instead of under the authority of the user (the operator). The authority is adopted only while the program is active. The USEADPAUT parameter on the compile has a different but related purpose. If you compile PGM1 with adopted authority, then call PGM2 from PGM1, the USEADPAUT parameter on PGM2 tells system whether or not to continue to use the adopted authority on when running PGM2. Note however that if PGM1 has been ended before PGM2 is called, then the adopted authority has already ended and it doesn't matter what you put in the USEADPAUT parameter on PGM2. Debbie Gallagher ____________________ On Friday, September 18, 1998, 05:05 PM, Mark McCall wrote: Vincent, Here is an example CL program that enables a user profile. . . . . . When you compile the program, set the USEADPAUT parameter to *YES. Then change the owner of the program to the Security Officer or Sec Admin using the CHGOBJOWN command. Mark McCall ************** On Friday, September 18, 1998, 07:36 AM, vincent wrote: How to grant the adopt authority to operator ids in order for them to only enable their passwords or other passwords without using security administrator id??

+ Reply to Thread

Similar Threads

  1. Adopt authority when running SNDDST
    By Guest.Visitor in forum Security
    Replies: 2
    Last Post: 04-30-2001, 10:35 PM
  2. Adopt Authority
    By S.Mildenberger in forum Security
    Replies: 3
    Last Post: 04-09-2001, 06:26 PM
  3. Authority Adopt Problem
    By Guest.Visitor in forum Application Software
    Replies: 14
    Last Post: 08-10-2000, 02:43 AM
  4. Adopt authority and STRDBG (V4R4)
    By Guest.Visitor in forum Security
    Replies: 5
    Last Post: 03-16-2000, 10:56 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts