TechTalk: Security Tip

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

Have you ever had the need to submit a job to batch? Of course you have! But have you wanted to submit it as though you were the security officer? Again, I bet you have. When a job is running in batch mode, its authority to access objects is based upon whether or not the user who submitted the job has the necessary authority. Take the following example:

My Data Processing controller wants to incorporate one of these neat ResourceLibrary utilities to optimize the system as opposed to chunking out more money for additional DASD. The utility he is reading about will reorganize files, optimize programs, etc., provided that the user who submits the job to batch is authorized to the objects being optimized. He compiles the objects, picks a Sunday to execute them, and Monday morning (drum roll, please) discovers that this process bought him a whopping 1.3298 MB of DASD. At this point he groans, moans and requisitions additional DASD.

But wait! I, the programmer, have also been using the ResourceLibrary, and happen to know that there is a solution. I have discovered that even though you are not authorized to do the cleanup, you may submit the job as though you were. But would this breach security? No, not if implemented properly.

See below:

 SBMJOB CMD(CALL PGM(OPTIMIZE)) + JOB(OPTIMIZE) USER(OPTIMIZE) 

This command will do the job! Notice that the USER parameter contains OPTIMIZE. This is the name of a user profile, created with a user class of *SECOFR (security officer) and a password of *NONE, which is to say that it cannot be used to initiate an interactive job. Remember to revoke all public authority to user profile OPTIMIZE and grant the DP controller *USE authority to the same. Here's how:

 GRTOBJAUT OBJ(OPTIMIZE) + OBJTYPE(*USRPRF) USER(*PUBLIC) + AUT(*EXCLUDE) GRTOBJAUT OBJ(OPTIMIZE) + OBJTYPE(*USRPRF) USER(...) + AUT(*USE) 

Now for the best part: once this was done, we chose another Sunday to try it again. Guess what. We went from 87 percent to 76 percent of utilized DASD. Thanks ResourceLibrary!

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: