Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Invalid login.defs for RHEL6 #651

Closed
swampf0etus opened this issue Mar 9, 2023 · 1 comment
Closed

Invalid login.defs for RHEL6 #651

swampf0etus opened this issue Mar 9, 2023 · 1 comment

Comments

@swampf0etus
Copy link

In the templates/etc/login.defs.j2 template of the os_hardening role, there are a number of parameters that are relative to RHEL7+ that cause problems in RHEL6.

The following parameters cause problems on RHEL6:

SUB_UID_MIN
SUB_UID_MAX
SUB_UID_COUNT
SUB_GID_MIN
SUB_GID_MAX
SUB_GID_COUNT

Inclusion of these parameters on a RHEL6 host causes problems with user admin commands, such as usermod.

To recreate the issue:

  1. Install RHEL6 on host
  2. Run os_hardening role against host
  3. Run user admin command, e.g.:
    usermod -aG myuser wheel

Example error:

configuration error - unknown item 'SUB_UID_MIN' (notify system administrator)
configuration error - unknown item 'SUB_UID_MAX' (notify system administrator)
configuration error - unknown item 'SUB_UID_COUNT' (notify system administrator)
configuration error - unknown item 'SUB_GID_MIN' (notify system administrator)
configuration error - unknown item 'SUB_GID_MAX' (notify system administrator)
configuration error - unknown item 'SUB_GID_COUNT' (notify system administrator)
@rndmh3ro
Copy link
Member

rndmh3ro commented Mar 9, 2023

Sorry, Redhat 6 is out of regular support so we don't support it either.

@rndmh3ro rndmh3ro closed this as completed Mar 9, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants