nodejs / nodejs/build

Rotate /etc/security/failedlogin on AIX

Open
#3,237 2 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

platform:aix
Dominant language
Jinja
Stars
541
Forks
185
Avg merge
22h 15m
Merged PRs (30d)
4

Description

I just had some trouble running our playbook against test-osuosl-aix72-ppc64_be-3 as it was out of disk space. It turns out this was due to the failedlogin file:

-rw-r-----    1 root     system   1020312936 Mar 17 17:38 failedlogin

We have a reference to this file in the old manual instructions for AIX 6.1 which said to remove the file on a timer: https://github.com/nodejs/build/blob/df793bf71fa0020cb3ef00ae8879677b65e5021e/ansible/aix61-standalone/manualBootstrap.md?plain=1#L30-L36

Adoptium has a script to rotate this file, which we might be able to borrow: https://github.com/adoptium/infrastructure/issues/835
Alternatively AIX toolbox has logrotate, although I do not know how nicely that will work with a binary file (failedlogin is not a text file).

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the AIX manual instructions in ansible/aix61-standalone/manualBootstrap.md and review the Adoptium infrastructure issue linked in the report. Investigate how /etc/security/failedlogin can be rotated on AIX, including whether AIX Toolbox logrotate handles its binary format; done means the playbook prevents this file from consuming disk space.

Written by the indexing model from the issue text.

Assessment

Tech stack
ansible
Domain
infrastructure, operating-systems
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.