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

Checking /etc/gshadow- fails if group is shadow #12986

Open
cambid opened this issue Feb 6, 2025 · 0 comments
Open

Checking /etc/gshadow- fails if group is shadow #12986

cambid opened this issue Feb 6, 2025 · 0 comments
Labels
Ubuntu Ubuntu product related.

Comments

@cambid
Copy link

cambid commented Feb 6, 2025

Description of problem:

The test for the group of /etc/gshadow- fails if group is shadow and not root under Ubuntu 24.04

SCAP Security Guide Version: Nightly Build

Operating System Version: 24.04.1 LTS (Noble Numbat)

Steps to Reproduce:

  1. Download Nightly build and unpack scap-security-guide-0.1.76.zip
  2. Run oscap xccdf eval --profile xccdf_org.ssgproject.content_profile_cis_level1_server --rule xccdf_org.ssgproject.content_rule_file_groupowner_backup_etc_gshadow ssg-ubuntu2404-ds.xml

Actual Results:

Title   Verify Group Who Owns Backup gshadow File
Rule    xccdf_org.ssgproject.content_rule_file_groupowner_backup_etc_gshadow
Result  fail

Expected Results:

Title   Verify Group Who Owns Backup gshadow File
Rule    xccdf_org.ssgproject.content_rule_file_groupowner_backup_etc_gshadow
Result  pass

Notes

  • The test for /etc/shadow is working as expected with the group shadow

Maybe the difference in the var-handling in https://github.com/ComplianceAsCode/content/blob/f291b6ef20991421d5766dca7e5fcc343fb1036f/linux_os/guide/system/permissions/files/permissions_important_account_files/file_groupowner_backup_etc_gshadow/rule.yml (static) and

{{% elif "ubuntu" in product or "debian" in product %}}
gid_or_name: '42'
{{% else %}}
(for all debian and ubuntus) is the problem here.

@Mab879 Mab879 added the Ubuntu Ubuntu product related. label Feb 6, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Ubuntu Ubuntu product related.
Projects
None yet
Development

No branches or pull requests

2 participants