{"description": " To properly set the owner of <code>/etc/iptables</code>, run the command:\n<pre>$ sudo chown root /etc/iptables </pre>\n", "rationale": "The ownership of the /etc/iptables directory by the root user is important\nbecause this directory hosts iptables configuration. Protection of this\nfile is critical for system security. Assigning the ownership to root\nensures exclusive control of the iptables configuration.", "severity": "medium", "references": {"anssi": ["R50"]}, "control_references": {"anssi": ["R50"]}, "components": [], "identifiers": {}, "ocil_clause": "/etc/iptables does not have an owner of root", "ocil": "To check the ownership of <code>/etc/iptables</code>,\nrun the command:\n<pre>$ ls -lL /etc/iptables</pre>\nIf properly configured, the output should indicate the following owner:\n<code>root</code>", "oval_external_content": null, "fixtext": " Change the owner of the file /etc/iptables to root by running the following command:\n$ sudo chown root /etc/iptables", "checktext": "", "vuldiscussion": "", "srg_requirement": " The Ubuntu 22.04 /etc/iptables file must be owned by root.", "warnings": [], "conflicts": [], "requires": [], "policy_specific_content": {}, "platform": "package[iptables]", "platforms": ["package[iptables]"], "sce_metadata": {}, "inherited_platforms": [], "cpe_platform_names": ["package_iptables"], "inherited_cpe_platform_names": [], "bash_conditional": null, "fixes": {}, "title": "Verify User Who Owns /etc/iptables Directory", "definition_location": "/aptdata/openscap/scap-security-guide/linux_os/guide/system/network/network-iptables/directory_owner_etc_iptables/rule.yml", "template": {"name": "file_owner", "vars": {"filepath": "/etc/iptables/", "uid_or_name": "0"}, "backends": {}}}