Newsletters   Subscriptions  Forums  Store   Career  Media Kit  About Us  Contact  Search   Home 
fhg
Volume 4, Number 32 -- September 22, 2004

Command Authority and LOGCMD

Hey, Wayne O.:

Is there a security exposure if a user has command line access plus special authorities, such as job control (*JOBCTL) and spool control (*SPLCTL), with the *PUBLIC authority is set to *USE for commands such as CRTUSRPRF, DLTUSRPRF, CHGUSRPRF, GRTUSRAUT, DLTLIB, CLRLIB, CRTLIB, CHGSYSVAL, CHGOBJOWN, GRTOBJAUT, CHGDSTPWD? Do you need to set the *PUBLIC authority to *EXCLUDE for these commands? What harm can the users with command line do? Sometimes, programmers (the vendors) ask for *ALLOBJ authority. They say that if they don't have *ALLOBJ authority, they can't provide technical support or help us to trouble shoot. Is this true?

--John


You asked several questions. Let me handle them one at a time.


AUTHORITY TO COMMANDS


You can leave the *PUBLIC authority to commands at *USE for the commands you mentioned in your note because there are other controls. (The only exception would be the CRTLIB command, if you want to prevent users from creating libraries.) The additional controls on commands are as follows:

The commands for user profiles (DLTUSRPRF, CHGUSRPRF CRTUSRPRF) require that the user have *SECADM (security administration) special authority.

The CLRLIB and DLTLIB commands require that the user be authorized to the library so the user will be prevented from accessing most production libraries.

The CHGDSTPWD command must be issued by the QSECOFR user profile. You can change the public authority on the command to *EXCLUDE, but it's not necessary.

The CHGSYSVAL is shipped by IBM with *PUBLIC authority of *EXCLUDE. In addition, the security-related system values require that users have *ALLOBJ and *SECADM special authority.

In V5R2, IBM added a feature that allows you to restrict users from changing the security-related system values. System service tools (SST) and dedicated service tools (DST) provide an option to lock these system values. By locking the system values, you can prevent even a user with *SECADM and *ALLOBJ authority from changing these system values with the CHGSYSVAL command (I described this feature in "V5R2 Security System Value Lock").

The CRTLIB command is the only command that you may want to restrict if you want to prevent users from creating libraries.

The CHGOBJOWN command requires that you be the owner or have object management authority to the object.

Appendix C and Appendix D of the IBM security reference manual (SC41-5302, in PDF format) provides additional information on the security of commands and the authority required to issue specific commands.


PROGRAMMER'S REQUEST FOR *ALLOBJ SPECIAL AUTHORITY


A programmer's request for *ALLOBJ special authority is probably the most common security question I am asked. The answer is no. Programmers should not have *ALLOBJ special authority on a system with production data. I know that programmers will tell you they can't do their job unless they have *ALLOBJ special authority, but in a well-run installation there are some alternatives.

First, *ALLOBJ special authority is very powerful. The *ALLOBJ special authority allows programmers to do anything, so I teach that *ALLOBJ is *GOD. I know programmers think that they are God, but actually most programmers are just humans.

There are two alternatives. Give programmers a test environment separate from development where they can test and debug problems.

This can be a separate machine or copies of the production data libraries in test libraries. The programmers are authorized only to the test data, not production data. This option may require significant effort and cost to set up, but is the most secure.

LOGCMD is a tool that I developed that gives programmers temporary access to *ALLOBJ. You can control what users are allowed to run LOGCMD. When users run LOGCMD, they are given a command entry screen with adopted *ALLOBJ special authority, but every command they enter while running with *ALLOBJ authority is recorded in the audit journal.

I have installed LOGCMD for many of my clients, and programmers are allowed to do their work, but there is an audit log of their activity. After programmers get used to LOGCMD, they appreciate that they do not have *ALLOBJ authority and can accidentally modify or delete production objects.

You can get a detailed write up and copies of the LOGCMD code from my Web site, www.woevans.com. There is no charge, but I do request that you make a donation to charity if you find the tool useful. I recommend LOGCMD to my clients because it allows programmers to do their job but has a method to audit their activities.


*SPLCTL AUTHORITY


You did not ask about *SPLCTL authority, but your note implies that you have given this authority to many users. If you have sensitive data (payroll, human resources, or client records), you need to prevent users from viewing the printed output. You did not indicate your company, but from the e-mail address it appears that it is a financial intuition, and very likely has sensitive client data.


Users do not need special authority to view their own spool files. If you give users *JOBCTL authority, they can view the spool files created by other users unless they are in a restricted output queue. (See "Secure Spool File Management" for more details.)

--Wayne O. Evans


Security articles authored by Wayne O. Evans can be found on his Web site, www.woevans.com. Click here to contact author.

Sponsored By
WORKSRIGHT SOFTWARE

Do you need area code information?
Do you need ZIP Code information?
Do you need ZIP+4 information?
Do you need city name information?
Do you need county information?
Do you need a nearest dealer locator system?

We can HELP! We have affordable AS/400 software and data to do all of the above. Whether you need a simple city name retrieval system or a sophisticated CASS postal coding system, we have it for you!

The ZIP/CITY system is based on 5-digit ZIP Codes. You can retrieve city names, state names, county names, area codes, time zones, latitude, longitude, and more just by knowing the ZIP Code. We supply information on all the latest area code changes. A nearest dealer locator function is also included. ZIP/CITY includes software, data, monthly updates, and unlimited support. The cost is $495 per year.

PER/ZIP4 is a sophisticated CASS certified postal coding system for assigning ZIP Codes, ZIP+4, carrier route, and delivery point codes. PER/ZIP4 also provides county names and FIPS codes. PER/ZIP4 can be used interactively, in batch, and with callable programs. PER/ZIP4 includes software, data, monthly updates, and unlimited support. The cost is $3,900 for the first year, and $1,950 for renewal.

Just call us and we'll arrange for 30 days FREE use of either
ZIP/CITY or PER/ZIP4.

WorksRight Software, Inc.
Phone: 601-856-8337
Fax: 601-856-9432
E-mail: software@worksright.com
Web site: www.worksright.com


Technical Editors: Howard Arner, Joe Hertvik, Ted Holt,
Shannon O'Donnell, Kevin Vandever
Managing Editor: Shannon Pastore
Contributing Technical Editors: Joel Cochran, Wayne O. Evans, Raymond Everhart,
Bruce Guetzkow, Marc Logemann, David Morris
Publisher and Advertising Director: Jenny Thomas
Advertising Sales Representative: Kim Reed
Contact the Editors: To contact anyone on the IT Jungle Team
Go to our contacts page and send us a message.


THIS ISSUE
SPONSORED BY:

Advanced Systems Concepts
WorksRight Software
Bug Busters Software Engineering


BACK ISSUES

TABLE OF
CONTENTS
A Generic Command Choice Program

Command Authority and LOGCMD

Optional Parameters and CL Procedures: Valuable Info from IBM


The Four Hundred
OpenPowers Prove IBM Can Do Puppy i5s

eServer i5 Solution Editions Hit the Streets

New TPC Benchmarks Are on the Horizon

Four Hundred Stuff
EVault Brings Online Backups to the iSeries

MKS Integrates Workflow Application with WDSc

Business Intelligence Tool Gets Better PeopleSoft Compatibility

Four Hundred Monitor


Copyright © 1996-2008 Guild Companies, Inc. All Rights Reserved.
Guild Companies, Inc. (formerly Guild Companies), 50 Park Terrace East, Suite 8F, New York, NY 10034
Privacy Statement