Affected versions: IBM AIX 7.2

📖 ~1 min read

Table of contents
  1. Symptom & Impact
  2. Environment & Reproduction
  3. Root Cause Analysis
  4. Quick Triage
  5. Step-by-Step Diagnosis
  6. Solution – Primary Fix
  7. Solution – Alternative Approaches
  8. Verification & Acceptance Criteria
  9. Rollback Plan
  10. Prevention & Hardening
  11. Related Errors & Cross-Refs
  12. References & Further Reading

Symptom & Impact

After `aixpert -l high`, SSH logins are denied and `sudo` is unavailable for emergency access.

Environment & Reproduction

AIX 7.2 host where the high-security template was applied without review.

Root Cause Analysis

AIX Security Expert disabled `loginrestrictions` for root and tightened `/etc/security/login.cfg`.

Quick Triage

Console in as root, run `aixpert -p` to view applied rules, and `lssec -f /etc/security/user`.

Step-by-Step Diagnosis

Capture `/etc/security/aixpert/log/aixpertall.xml` and the `aixpert.log` from the run.

Illustrative mockup for aix-7.2 — security_aixpert-rollback_terminal
Terminal diagnostics for AIX Security Expert lockdown breaks SSH on IBM AIX 7.2 — Illustrative mockup — Progressive Robot

Solution – Primary Fix

Roll back to defaults: `aixpert -u` and reboot to clear cached login restrictions.

Still having issues? Our IT Consulting team can diagnose and resolve this for you. Get in touch for a free consultation.

Illustrative mockup for aix-7.2 — security_aixpert-rollback_logs
Logs and evidence for AIX Security Expert lockdown breaks SSH on IBM AIX 7.2 — Illustrative mockup — Progressive Robot

Solution – Alternative Approaches

Reapply a tailored XML profile: `aixpert -f /etc/security/aixpert/custom/medium.xml -a`.

Verification & Acceptance Criteria

`ssh user@host` succeeds and `lsuser -a rlogin login user` shows expected values.

Rollback Plan

Restore the saved policy with `aixpert -f undo.xml` from before the change.

Prevention & Hardening

Always run `aixpert -c` in check mode against a non-prod LPAR before applying.

Pairs with `SECURITY_REJECT` errpt and PAM stack failures on `sshd`.

Related tutorial: View the step-by-step tutorial for aix-7.2.

View all aix-7.2 tutorials on the Tutorials Hub →

Browse all common problems & solutions on the Tutorials Hub.

References & Further Reading

IBM Docs: AIX Security Expert (`aixpert`), `/etc/security/login.cfg`.

Need Expert Help?

If you cannot resolve this yourself, our team offers hands-on Server Management, Managed IT Services, and flexible Support Plans. Contact us today — we respond within one business day.