TechTip: Use Print Adopting Objects (PRTADPOBJ ) to Keep Track of Adoption of Authority

Typography
  • Smaller Small Medium Big Bigger
  • Default Helvetica Segoe Georgia Times

Adopting authority enables users to drive the car to the store and back yet stay off the highway. To ensure no one ends up in the ditch, you must know where the keys are at all times.

 

Adoption of authority is a solution to the problem of having users who need to execute commands that are otherwise forbidden based on their current IBM i authority level.

 

For example, your helpdesk personnel must have the ability to re-enable user profiles that have been disabled, but you don't want to give them *SECADM special authority and access to the Change User Profile (CHGUSRPRF) command. Instead, you can create a simple custom program that accepts one parameter (i.e., the user profile name); then, once the program is called, it then changes the profile status from *DISABLED to *ENABLED. For this to happen, the program has to adopt the authority of the owner of the program object, and that owner must have the authority to run the commands called within the program.

 

Since these programs give users expanded abilities, you need to be able to keep an eye on them. Fortunately, IBM provides the command Print Adopting Objects (PRTADPOBJ). This command gives you the ability to print a list of programs that adopt authority.

 

You can choose a specific profile whose authority is adopted or specify *ALL to cover all the bases. The command has another parameter called CHGRPTONLY, which gives you the option to list either only new programs that have been changed/created since the last time the command was run or all programs that adopt authority.

 

I'd suggest you run the command yearly with CHGRPTONLY set to *NO so you can fully review all objects that adopt authority. During the year, you should run the command with CHGRPTONLY set to *YES so you can see what new programs are adopting authority and ask the appropriate questions of your developers if need be. The frequency really depends on the amount of custom development in your shop and whether you have frequent vendor program patches applied. A heavy development shop may require a weekly checkup while a fairly static system may need far less scrutiny.

Don't Run This Command at 9:00 on a Monday Morning

Running this command during production hours may cause performance problems due to the command obtaining locks on user profiles to analyze private authorities. (See IBM Technote 561184146 for details.) For that reason, it's probably best to run this command after hours.

as/400, os/400, iseries, system i, i5/os, ibm i, power systems, 6.1, 7.1, V7,

Steve Pitcher
Steve Pitcher works with iTech Solutions, an IBM Premier Business Partner. He is a specialist in IBM i and IBM Power Systems solutions since 2001. Feel free to contact him directly This email address is being protected from spambots. You need JavaScript enabled to view it..
BLOG COMMENTS POWERED BY DISQUS

LATEST COMMENTS

Support MC Press Online

$

Book Reviews

Resource Center

  •  

  • LANSA Business users want new applications now. Market and regulatory pressures require faster application updates and delivery into production. Your IBM i developers may be approaching retirement, and you see no sure way to fill their positions with experienced developers. In addition, you may be caught between maintaining your existing applications and the uncertainty of moving to something new.

  • The MC Resource Centers bring you the widest selection of white papers, trial software, and on-demand webcasts for you to choose from. >> Review the list of White Papers, Trial Software or On-Demand Webcast at the MC Press Resource Center. >> Add the items to yru Cart and complet he checkout process and submit

  • SB Profound WC 5536Join us for this hour-long webcast that will explore:

  • Fortra IT managers hoping to find new IBM i talent are discovering that the pool of experienced RPG programmers and operators or administrators with intimate knowledge of the operating system and the applications that run on it is small. This begs the question: How will you manage the platform that supports such a big part of your business? This guide offers strategies and software suggestions to help you plan IT staffing and resources and smooth the transition after your AS/400 talent retires. Read on to learn: