{"description": "Set the owner of the user initialization files for interactive users to\nthe primary owner with the following command:\n<pre>$ sudo chown <i>USER</i> /home/<i>USER</i>/.*</pre>\n\nThis rule ensures every initialization file related to an interactive user\nis owned by an interactive user.", "rationale": "Local initialization files are used to configure the user's shell environment\nupon logon. Malicious modification of these files could compromise accounts upon\nlogon.", "severity": "medium", "references": {"srg": ["SRG-OS-000480-GPOS-00227"], "anssi": ["R50"], "cis": ["7.2.10"]}, "control_references": {"anssi": ["R50"], "cis": ["7.2.10"]}, "components": [], "identifiers": {}, "ocil_clause": "they are not", "ocil": "To verify all local initialization files for interactive users are owned by the\nprimary user, run the following command:\n<pre>$ sudo ls -al /home/<i>USER</i>/.*</pre>\nThe user initialization files should be owned by <i>USER</i>.", "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 ownership of\ntheir respective initialization files."}], "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": "User Initialization Files Must Be Owned By the Primary User", "definition_location": "/aptdata/openscap/scap-security-guide/linux_os/guide/system/accounts/accounts-session/accounts_user_dot_user_ownership/rule.yml", "template": null}