Choose the QSECURITY Level by the System You Run
30Move UpResource authority works, but IBM i integrity protection is not active. Prepare the applications and move to 40 or 50.
40Production MinimumUse this as the normal floor for a production server. It adds the operating system integrity checks missing at level 30.
50Highest ProtectionUse this when the system needs the strongest integrity rules and the applications can run under the tighter checks.
What QSECURITY Actually Controls
QSECURITY controls resource authority and the operating system checks that protect IBM i from unsupported program behavior. Level 30 enforces resource authority. Levels 40 and 50 add the integrity checks that stop a program from reaching around those rules.
That difference matters. A system at level 30 can have a careful authority model and still lack the integrity protection built into levels 40 and 50.
The IBM i Security Levels
A QSECURITY change takes effect at the next initial program load. Test first, then make the change inside a maintenance window you chose.
| Level | What It Enforces | Our Verdict |
|---|
| 10 | No password required. Signing on with an unknown profile created one automatically. | Gone. IBM removed support at V4R3. You cannot set it, and you would not want to. |
| 20 | Password required to sign on. Every user profile is created with *ALLOBJ special authority by default. | Historical only. Current IBM i documentation says you cannot set QSECURITY to level 20. |
| 30 | Password required, and object authority is enforced. Users no longer receive *ALLOBJ automatically. | The old default. Real authority enforcement, but the operating system will not defend its own integrity. |
| 40 | Everything in level 30, plus operating system integrity protection. Programs cannot call unsupported interfaces or reach objects directly through pointer manipulation. | The practical minimum, and the shipped default. If you are below this, start here. |
| 50 | Everything in level 40, plus stricter validation of message handling and parameters passed between programs at different states. | The right answer for high-assurance and heavily regulated environments. Test it properly before you enforce it. |
The Level Is a Floor, Not a Program
Here is the part that gets skipped. Fortra's annual State of IBM i Security Study has found for years running that the average audited system is already at level 40, and that those same systems still carry default passwords on powerful profiles, far too many users holding *ALLOBJ, and exit points sitting wide open to FTP and ODBC.
So the level is not the finding. The level is the thing almost everybody already got right, which is exactly what makes it such a poor place to stop. Setting QSECURITY to 40 does not clean up your authority model, does not turn on audit journaling, and does not put a single control in front of a network connection. It sets the floor. What you build on the floor is the actual security program.
Moving Up a Level Without Breaking Production
The risk in raising the level is old code. A program that uses an unsupported interface can fail once the stronger integrity checks are active. IBM gives you a way to find much of that risk before the production change.
- 1
Turn On Failure Auditing First
Include *PGMFAIL and *AUTFAIL in QAUDLVL so IBM i records the failures that need attention.
- 2
Run a Full Business Cycle
Cover the work that runs monthly or quarterly so a quiet test week does not hide the program that will fail later.
- 3
Raise the Level in Test
Change the test partition, perform the IPL, and run the same applications and batch work used in production.
- 4
Set the Production Rollback
Name the owner, maintenance window, checks, and rollback decision before the production IPL begins.
The System Values That Matter as Much as the Level
QSECURITY gets the attention because it has a number attached to it. Several of its neighbours do more day-to-day work and are quietly left at defaults on a lot of systems.
QPWDLVLPassword level 0 to 3. Levels 2 and 3 allow long, case-sensitive passphrases instead of 10 characters.
QMAXSIGNHow many failed sign-on attempts before the profile or device is disabled.
QINACTITVInactive job timeout. Unattended 5250 sessions are a recurring audit finding.
QLMTSECOFRRestricts where *ALLOBJ and *SERVICE profiles are allowed to sign on.
QCRTAUTDefault public authority for newly created objects. Frequently still sitting at *CHANGE.
QALWOBJRSTControls whether objects with security-sensitive attributes can be restored.
QRETSVRSECWhether server security data, including credentials for other systems, is retained.
QSECURITYThe level itself. Requires an IPL before the change takes effect.
Menu Security Is Not Security
Limiting a user to an initial menu and setting LMTCPB(*YES) feels like a control, and for a long time it behaved like one. When a green screen was the only way onto the machine, the menu really was the boundary.
It is not the boundary now. ODBC, JDBC, FTP, DDM, remote command, and Access Client Solutions all reach the data without ever loading a menu. A user restricted to three options on a green screen can often pull the same files straight into a spreadsheet from their desk. Menu security is a usability feature that we kept describing as a security feature, and the space between those two descriptions is where a lot of shops are still exposed.
Check your level first, because it is quick and the answer is binary. Then treat that answer as the starting line. The exposures that turn up in real assessments live in authority management, exit points, and default passwords, not in the QSECURITY value.
Current IBM QSECURITY References
IBM's current documentation treats level 40 as the normal production floor and level 50 as the strongest choice. Use the migration instructions before the IPL instead of treating the number as a harmless setting.