{"description": "Change the group of a local interactive users files and directories to a\ngroup that the interactive user is a member of. To change the group owner of a\nlocal interactive users files and directories, use the following command:\n<pre>$ sudo chgrp <i>USER_GROUP</i> /home/<i>USER</i>/<i>FILE_DIR</i></pre>\n\nThis rule ensures every file or directory under the home directory related\nto an interactive user is group-owned by an interactive user.", "rationale": "If a local interactive users files are group-owned by a group of which the\nuser is not a member, unintended users may be able to access them.", "severity": "medium", "references": {"srg": ["SRG-OS-000480-GPOS-00227"], "anssi": ["R50"]}, "control_references": {"anssi": ["R50"]}, "components": [], "identifiers": {}, "ocil_clause": "the group ownership is incorrect", "ocil": "To verify all files and directories in interactive user home directory are\ngroup-owned by a group the user is a member of, run the\nfollowing command:\n<pre>$ sudo ls -lLR /home/<i>USER</i></pre>", "oval_external_content": null, "fixtext": "", "checktext": "", "vuldiscussion": "", "srg_requirement": "", "warnings": [{"general": "Due to OVAL limitation, this rule can report a false negative in a\nspecific situation where two interactive users swap the group-ownership\nof folders or files in their respective home directories."}], "conflicts": [], "requires": [], "policy_specific_content": {}, "platform": "system_with_kernel", "platforms": ["system_with_kernel"], "sce_metadata": {}, "inherited_platforms": [], "cpe_platform_names": ["system_with_kernel"], "inherited_cpe_platform_names": [], "bash_conditional": null, "fixes": {}, "title": "All User Files and Directories In The Home Directory Must Be Group-Owned By The Primary Group", "definition_location": "/aptdata/openscap/scap-security-guide/linux_os/guide/system/accounts/accounts-session/accounts_users_home_files_groupownership/rule.yml", "template": null}