{"description": "\nTo properly set the permissions of <code>/etc/shells</code>, run the command:\n<pre>$ sudo chmod 0644 /etc/shells</pre>", "rationale": "The <tt>/etc/shells</tt> file contains the list of full pathnames to shells on the system.\nSince this file is used by many system programs this file should be protected.", "severity": "medium", "references": {"nist": ["AC-3", "MP-2"], "anssi": ["R50"], "cis": ["7.1.9"]}, "control_references": {"anssi": ["R50"], "cis": ["7.1.9"]}, "components": [], "identifiers": {}, "ocil_clause": "/etc/shells does not have unix mode 0644", "ocil": "To check the permissions of <code>/etc/shells</code>,\nrun the command:\n<pre>$ ls -l /etc/shells</pre>\nIf properly configured, the output should indicate the following permissions:\n<code>0644</code>", "oval_external_content": null, "fixtext": " Configure the \"/etc/shells\" file to \"0644\" by running the following command:\n$ sudo chmod 0644 /etc/shells", "checktext": "", "vuldiscussion": "", "srg_requirement": "The Ubuntu 22.04 /etc/shells file must have a mode of 0640 to prevent unauthorized access.", "warnings": [], "conflicts": [], "requires": [], "policy_specific_content": {}, "platform": null, "platforms": [], "sce_metadata": {}, "inherited_platforms": [], "cpe_platform_names": [], "inherited_cpe_platform_names": [], "bash_conditional": null, "fixes": {}, "title": "Verify Permissions on /etc/shells File", "definition_location": "/aptdata/openscap/scap-security-guide/linux_os/guide/system/permissions/files/permissions_important_account_files/file_permissions_etc_shells/rule.yml", "template": {"name": "file_permissions", "vars": {"filepath": "/etc/shells", "filemode": "0644"}, "backends": {}}}