25
Mon, Nov
1 New Articles

Security Patrol

IBM i (OS/400, i5/OS)
Typography
  • Smaller Small Medium Big Bigger
  • Default Helvetica Segoe Georgia Times

The Primary Group Is Number One

Question: I’d like to organize my user community into groups and have each group work under a specific group profile, but I’m concerned about the performance impact of this. Doesn’t checking authority through a profile’s group involve a lot of overhead? Wouldn’t there be a great performance advantage to just using *PUBLIC as my default authority?

Answer: Long ago, it was true that validating authority through a profile’s group involved additional processing steps. OS/400 could quickly verify authority for the object’s owner or for *PUBLIC, as the object’s header carried both authorities. Everything else required looking up private authorities, and along with that came a performance penalty.

As I said, this was long ago. With V3R1, a change came that added something called the Primary Group Profile (PGP) to the object’s header. The PGP was there to support the UNIX model for file permissions, which was essential for using the AS/400 Integrated File System (AS/400 IFS). The reason why AS/400 IFS security required a PGP and not the traditional profile in QSYS had to do with how UNIX established file permissions. Unlike the AS/400, which had a very rich object authority structure, UNIX had a basic permissions structure, distinguishing between only World, Group, and Owner authorities. World corresponded to *PUBLIC owner, which was the same on OS/400, but, aside from time-consuming private authorities, there was no corresponding OS/400 Group authority. The *PUBLIC and Owner authorities were always stored with the object header. Thus, no time-consuming lookup was required to determine whether or not the user was authorized to the object, as the system already had the object in memory to perform the access. Implementing the UNIX permissions scheme required an equivalent to Group.

The existing method for implementing UNIX-like Group permissions involved using private authority. Private authority involved looking up the specific authority in the authorized objects associated with the user profile. To find out whether or not a user was authorized to an object, the system had to find the user profile and search for the private authority in the profile. This was a relatively time-consuming process and could degrade performance, particularly in situations such as online transaction entry, where many users and many different objects were involved. Because this slow, relatively cumbersome process for implementing such a critical part of the UNIX file system was not satisfactory, the PGP alternative was developed.


A PGP allows you to specify one, and only one, group profile and associated group authority for an object. Specifying a PGP requires the following:

• The user must have a group profile assigned in the AS/400 user profile.

• The user must own the object to specify the PGP.

• You must specify group authority for the object.

• You must specify *PGP authority.

Note that only one profile can be assigned as a primary group. The PGP must have a Group ID (GID) assigned. This is the UNIX-like group identifier. It may be assigned at the time of the profile’s creation via the Create User Profile (CRTUSRPRF) command or assigned to an existing profile via the Change User Profile (CHGUSRPRF) command. To get the extra parameters, be sure to press CMD 10 and scroll a few times to the last screen. GID is one of the last profile parameters listed.

There are several ways to establish PGP for an object. For the “traditional” QSYS file system, the command to change an object’s PGP is Change Object PGP (CHGOBJPGP), which specifies the primary group for the object and the authority that the primary group has to the object. The corresponding command for AS/400 IFS objects is Change PGP (CHGPGP), which requires specifying the full path of the object. For DLO objects, there is the Change DLO PGP (CHGDLOPGP) command. There is also the Work with Object PGP (WRKOBJPGP) command, which reviews every object that has a specific profile as its group profile.

You may also want to make sure that newly created objects are assigned primary group authority. To do this, ensure that all profiles assigned to the PGP have the Group authority type (GRPAUTTYP) parameter set to *PGP.

Last, I am sure you are diligently auditing all security-relevant events on your AS/400. In your audit journal (QAUDJRN), you will see audit events designed specifically for PGPs as RZ for the primary group of the object changed during a restore operation and PG for the primary group of the object changed. The relationship between group profiles, user profiles, and objects secured with PGPs is illustrated in Figure 1.

I suggest using PGPs instead of *PUBLIC authority for your users’ default access. You can follow the good security practice of *PUBLIC *EXCLUDE without the performance penalty of private authorities.

Wayne Evans touched on PGPs in an earlier “Security Patrol” article (MC, September 1998). You may also want to refer to this article for further information on this subject.

The Best Policy

Question: As administrator of our AS/400 system, I’m responsible for security. I’d like to develop a security policy for our management, but I’m not sure exactly how to proceed. What should go into a security policy, and how detailed does it have to be?

Answer: There is a wide variety of opinions on the exact nature of security policies and their organization, their format, and even their size. I’ve seen policies that range from memo-sized informal documents to massive tomes of hundreds of pages. While I prefer the shorter policies, the best size seems to be whatever works. In fact, whatever works is the best advice for any security policy.

When writing the various sections of a security policy, keep in mind the three dimensions of security: confidentiality, integrity, and availability (CIA for short).


Confidentiality describes protecting sensitive information in the sense that secrets are guarded and information is provided only to those who “need to know.” Integrity refers to the trustworthiness of information: Does it really represent the events that it purports to? Integrity in a data warehouse, for example, means that management can rely on statistical analysis of information to make critical decisions. In a financial system, integrity means that all transactions are properly recorded per policy and accounting practices. Availability means having systems and data available when they are needed and with the quality that is required.

Typically, a security policy is expected to include the following sections:

• Statement of mission and objectives. The mission and objectives should state what the policy is trying to accomplish. Keep this down to a paragraph or so and keep it nontechnical.

• Definitions of terms. The definitions of terms should standardize terminology so the rest of the document is entirely unambiguous.

• Statement of corporate positions on security issues. The corporate positions on security issues make up the meat of the policy. These may include policy statements regarding who is entitled to get accounts to various systems; user authentication; protection of identified, confidential corporate information (e.g., trade secrets and payroll); access control (i.e., who is permitted access to which resources); event auditing and review of audit logs; proper use of corporate PCs, email, and the Internet; and repair of security problems.

• Definitions of responsibilities for executing various parts of the policy. The definitions of responsibilities state who is responsible for what aspects of the policy. Most of these will be for nontechnical positions. Think about the role nontechnical managers must play in educating their staff and ensuring that they follow accepted practices. Include human resources, internal auditing, and legal, as these functions all have roles to play in defining and upholding the security policy. At the minimum, system administrators and security officers should be responsible for configuring systems securely. They are also usually responsible for monitoring audit logs, creating user profiles properly, and evaluating the security features of third-party software.

• Provisions for maintaining and approving the policy. As a living document, the security policy must provide for some process for changing the policy, approving the changes, and getting the most current version out to all employees.

Most of the Web sites that have policy information are slanted toward institutes of higher education. My favorite is authored by a fellow from the University of New Mexico named David D. Grisham. He has put together a comprehensive list of links to security policies at universities around the world at www.unm.edu/~dave/. USENIX, a UNIX- oriented user group, has a sample policy posted at www.usenix.org/sage/publications/policies/ fr_template.html. The USENIX policy is really designed for midsize UNIX shops, so it should be pertinent to many AS/400 installations despite some technical differences. Finally, the U.S. government provides a sample Internet use policy at csrc.nist.gov/isptg/. I like using the format of this policy as a standard; it’s very clean and well-organized and distinguishes between organizational policies and technology-specific policies. The organizational policies deal with broad issues such as business communication and publicity policy. The technology-specific policies apply the organizational policies to specific areas such as Internet email policy. Best of all, you can download this policy in a variety of formats, including Word 97, making it easy to use this document as a template for your organization’s policy.


References and Related Materials

“Security Patrol,” Wayne O. Evans, MC, September 1998

Group Profile

User Profile Objects

CRTUSRPRF, CHGUSRPRF: -GID gid number

Security_Patrol1204-00.png 112x52
Security_Patrol1204-01.png 415x101

To Make Group Profile the Object's Primary Group -CHGOBJPGP
-CHGPGP
-CHGDLOPGP -WRKOBJPGP

CHGUSRPRF, CRTUSRPRF: -GRPPRF group profile -GRPAUTTYP *PGP

EDTOBJAUT to Modify Primary Group's Authority

Figure 1: This is the relationship between group profiles, user profiles, and objects secured with PGPs.


BLOG COMMENTS POWERED BY DISQUS

LATEST COMMENTS

Support MC Press Online

$

Book Reviews

Resource Center

  • SB Profound WC 5536 Have you been wondering about Node.js? Our free Node.js Webinar Series takes you from total beginner to creating a fully-functional IBM i Node.js business application. You can find Part 1 here. In Part 2 of our free Node.js Webinar Series, Brian May teaches you the different tooling options available for writing code, debugging, and using Git for version control. Brian will briefly discuss the different tools available, and demonstrate his preferred setup for Node development on IBM i or any platform. Attend this webinar to learn:

  • SB Profound WP 5539More than ever, there is a demand for IT to deliver innovation. Your IBM i has been an essential part of your business operations for years. However, your organization may struggle to maintain the current system and implement new projects. The thousands of customers we've worked with and surveyed state that expectations regarding the digital footprint and vision of the company are not aligned with the current IT environment.

  • SB HelpSystems ROBOT Generic IBM announced the E1080 servers using the latest Power10 processor in September 2021. The most powerful processor from IBM to date, Power10 is designed to handle the demands of doing business in today’s high-tech atmosphere, including running cloud applications, supporting big data, and managing AI workloads. But what does Power10 mean for your data center? In this recorded webinar, IBMers Dan Sundt and Dylan Boday join IBM Power Champion Tom Huntington for a discussion on why Power10 technology is the right strategic investment if you run IBM i, AIX, or Linux. In this action-packed hour, Tom will share trends from the IBM i and AIX user communities while Dan and Dylan dive into the tech specs for key hardware, including:

  • Magic MarkTRY the one package that solves all your document design and printing challenges on all your platforms. Produce bar code labels, electronic forms, ad hoc reports, and RFID tags – without programming! MarkMagic is the only document design and print solution that combines report writing, WYSIWYG label and forms design, and conditional printing in one integrated product. Make sure your data survives when catastrophe hits. Request your trial now!  Request Now.

  • SB HelpSystems ROBOT GenericForms of ransomware has been around for over 30 years, and with more and more organizations suffering attacks each year, it continues to endure. What has made ransomware such a durable threat and what is the best way to combat it? In order to prevent ransomware, organizations must first understand how it works.

  • SB HelpSystems ROBOT GenericIT security is a top priority for businesses around the world, but most IBM i pros don’t know where to begin—and most cybersecurity experts don’t know IBM i. In this session, Robin Tatam explores the business impact of lax IBM i security, the top vulnerabilities putting IBM i at risk, and the steps you can take to protect your organization. If you’re looking to avoid unexpected downtime or corrupted data, you don’t want to miss this session.

  • SB HelpSystems ROBOT GenericCan you trust all of your users all of the time? A typical end user receives 16 malicious emails each month, but only 17 percent of these phishing campaigns are reported to IT. Once an attack is underway, most organizations won’t discover the breach until six months later. A staggering amount of damage can occur in that time. Despite these risks, 93 percent of organizations are leaving their IBM i systems vulnerable to cybercrime. In this on-demand webinar, IBM i security experts Robin Tatam and Sandi Moore will reveal:

  • FORTRA Disaster protection is vital to every business. Yet, it often consists of patched together procedures that are prone to error. From automatic backups to data encryption to media management, Robot automates the routine (yet often complex) tasks of iSeries backup and recovery, saving you time and money and making the process safer and more reliable. Automate your backups with the Robot Backup and Recovery Solution. Key features include:

  • FORTRAManaging messages on your IBM i can be more than a full-time job if you have to do it manually. Messages need a response and resources must be monitored—often over multiple systems and across platforms. How can you be sure you won’t miss important system events? Automate your message center with the Robot Message Management Solution. Key features include:

  • FORTRAThe thought of printing, distributing, and storing iSeries reports manually may reduce you to tears. Paper and labor costs associated with report generation can spiral out of control. Mountains of paper threaten to swamp your files. Robot automates report bursting, distribution, bundling, and archiving, and offers secure, selective online report viewing. Manage your reports with the Robot Report Management Solution. Key features include:

  • FORTRAFor over 30 years, Robot has been a leader in systems management for IBM i. With batch job creation and scheduling at its core, the Robot Job Scheduling Solution reduces the opportunity for human error and helps you maintain service levels, automating even the biggest, most complex runbooks. Manage your job schedule with the Robot Job Scheduling Solution. Key features include:

  • 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.

  • LANSAWhen it comes to creating your business applications, there are hundreds of coding platforms and programming languages to choose from. These options range from very complex traditional programming languages to Low-Code platforms where sometimes no traditional coding experience is needed. Download our whitepaper, The Power of Writing Code in a Low-Code Solution, and:

  • LANSASupply Chain is becoming increasingly complex and unpredictable. From raw materials for manufacturing to food supply chains, the journey from source to production to delivery to consumers is marred with inefficiencies, manual processes, shortages, recalls, counterfeits, and scandals. In this webinar, we discuss how:

  • 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

  • Profound Logic Have you been wondering about Node.js? Our free Node.js Webinar Series takes you from total beginner to creating a fully-functional IBM i Node.js business application.

  • 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: