I am encountering an issue when verify users are part of a group. /etc/group only contains secondary group membership in RHEL/CentOS. /etc/passwd contains primary membership.
User not found in group:
Specified: root
Actual: []
System Information
id root
uid=0(root) gid=0(root) groups=0(root)
groups root
root : root
grep root /etc/group
root:x:0:
Not sure why the check is failing. Searching through the code it appeared this check was parsing /etc/group vs using or validating with ID or groups commands.
I am encountering an issue when verify users are part of a group. /etc/group only contains secondary group membership in RHEL/CentOS. /etc/passwd contains primary membership.
Test json file
distributive output
distributive -f test.json v=2 Creating checklist... Running checks... Passed: 2 Failed: 1
User not found in group: Specified: root Actual: []
System Information
Not sure why the check is failing. Searching through the code it appeared this check was parsing /etc/group vs using or validating with ID or groups commands.