{"description": "System commands files are stored in the following directories by default:\n<pre>/bin\n/sbin\n/usr/bin\n/usr/sbin\n/usr/local/bin\n/usr/local/sbin\n</pre>\nAll files in these directories should be owned by the <tt>root</tt> group,\nor a system account.\nIf the directory, or any file in these directories, is found to be owned\nby a group other than root or a a system account correct its ownership\nwith the following command:\n<pre>$ sudo chgrp root <i>FILE</i></pre>", "rationale": "If the operating system allows any user to make changes to software\nlibraries, then those changes might be implemented without undergoing the\nappropriate testing and approvals that are part of a robust change management\nprocess.\nThis requirement applies to operating systems with software libraries\nthat are accessible and configurable, as in the case of interpreted languages.\nSoftware libraries also include privileged programs which execute with\nescalated privileges. Only qualified and authorized individuals must be\nallowed to obtain access to information system components for purposes\nof initiating changes, including upgrades and modifications.", "severity": "medium", "references": {"nist": ["CM-5(6)", "CM-5(6).1"], "srg": ["SRG-OS-000259-GPOS-00100"], "anssi": ["R50"], "stigid": ["UBTU-22-232055"], "stigref": ["SV-260496r991560_rule"]}, "control_references": {"anssi": ["R50"], "stigid": ["UBTU-22-232055"]}, "components": [], "identifiers": {}, "ocil_clause": "any system commands are returned and is not group-owned by a required system account", "ocil": "Verify the system commands contained in the following directories are group-owned by \"root\", or a required system account, with the following command:\n\n$ sudo find -L /bin /sbin /usr/bin /usr/sbin /usr/local/bin /usr/local/sbin ! -group root -exec ls -l {} \\;", "oval_external_content": null, "fixtext": "Configure the system commands to be protected from unauthorized access.\n\nRun the following command, replacing \"[FILE]\" with any system command file not group-owned by \"root\" or a required system account.\n\n$ sudo chgrp root [FILE]", "checktext": "", "vuldiscussion": "", "srg_requirement": "Ubuntu 22.04 system commands must be group-owned by root or a system account.", "warnings": [], "conflicts": [], "requires": [], "policy_specific_content": {"stig": {"srg_requirement": "Ubuntu 22.04 system commands must be group-owned by root or a system account.", "vuldiscussion": "If Ubuntu 22.04 allowed any user to make changes to software libraries, then those changes might be implemented without undergoing the appropriate testing and approvals that are part of a robust change management process.\n\nThis requirement applies to Ubuntu 22.04 with software libraries that are accessible and configurable, as in the case of interpreted languages. Software libraries also include privileged programs that execute with escalated privileges.", "checktext": "Verify the system commands contained in the following directories are group-owned by \"root\", or a required system account, with the following command:\n\n$ sudo find -L /bin /sbin /usr/bin /usr/sbin /usr/libexec /usr/local/bin /usr/local/sbin ! -group root -exec stat -L -c \"%G %n\" {} \\;\n\nIf any system commands are returned and are not group-owned by a required system account, this is a finding.", "fixtext": "Configure the system commands to be protected from unauthorized access.\n\nRun the following command, replacing \"[FILE]\" with any system command file not group-owned by \"root\" or a required system account.\n\n$ sudo chgrp root [FILE]"}}, "platform": null, "platforms": [], "sce_metadata": {}, "inherited_platforms": [], "cpe_platform_names": [], "inherited_cpe_platform_names": [], "bash_conditional": null, "fixes": {}, "title": "Verify that system commands files are group owned by root or a system account", "definition_location": "/aptdata/openscap/scap-security-guide/linux_os/guide/system/permissions/files/permissions_within_important_dirs/file_groupownership_system_commands_dirs/rule.yml", "template": null}