{"description": "Create home directories to all local interactive users that currently do not\nhave a home directory assigned. Use the following commands to create the user\nhome directory assigned in <tt>/etc/passwd</tt>:\n<pre>$ sudo mkdir /home/<i>USER</i></pre>", "rationale": "If a local interactive user has a home directory defined that does not exist,\nthe user may be given access to the / directory as the current working directory\nupon logon. This could create a Denial of Service because the user would not be\nable to access their logon configuration files, and it may give them visibility\nto system files they normally would not be able to access.", "severity": "medium", "references": {"srg": ["SRG-OS-000480-GPOS-00227"], "cis": ["7.2.9"]}, "control_references": {"cis": ["7.2.9"]}, "components": [], "identifiers": {}, "ocil_clause": "users home directory does not exist", "ocil": "Verify the assigned home directories of all interactive users on the system exist with the following command:\n\n<pre>$ sudo pwck -r\n\nuser 'mailnull': directory 'var/spool/mqueue' does not exist</pre>\n\nThe output should not return any interactive users.", "oval_external_content": null, "fixtext": "Create home directories to all local interactive users that currently do not have a home directory assigned. Use the following commands to create the user home directory assigned in \"/etc/passwd\":\n\nNote: The example will be for the user smithj, who has a home directory of \"/home/smithj\", a UID of \"smithj\", and a Group Identifier (GID) of \"users assigned\" in \"/etc/passwd\".\n\n$ sudo mkdir /home/smithj\n$ sudo chown smithj /home/smithj\n$ sudo chgrp users /home/smithj\n$ sudo chmod 0750 /home/smithj", "checktext": "", "vuldiscussion": "", "srg_requirement": "All Ubuntu 22.04 local interactive user home directories defined in the /etc/passwd file must exist.", "warnings": [], "conflicts": [], "requires": [], "policy_specific_content": {"stig": {"srg_requirement": "All Ubuntu 22.04 local interactive user home directories defined in the /etc/passwd file must exist.", "vuldiscussion": "If a local interactive user has a home directory defined that does not exist, the user may be given access to the / directory as the current working directory upon logon. This could create a denial of service because the user would not be able to access their logon configuration files, and it may give them visibility to system files they normally would not be able to access.", "checktext": "Verify the assigned home directories of all interactive users on the system exist with the following command:\n\n$ sudo pwck -r\n\nuser 'mailnull': directory 'var/spool/mqueue' does not exist\n\nThe output should not return any interactive users.\n\nIf users home directory does not exist, this is a finding.", "fixtext": "Create home directories to all local interactive users that currently do not have a home directory assigned. Use the following commands to create the user home directory assigned in \"/etc/ passwd\":\n\nNote: The example will be for the user wadea, who has a home directory of \"/home/wadea\", a user identifier (UID) of \"wadea\", and a Group Identifier (GID) of \"users assigned\" in \"/etc/passwd\".\n\n$ sudo mkdir /home/wadea\n$ sudo chown wadea /home/wadea\n$ sudo chgrp users /home/wadea\n$ sudo chmod 0750 /home/wadea"}}, "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 Interactive Users Home Directories Must Exist", "definition_location": "/aptdata/openscap/scap-security-guide/linux_os/guide/system/accounts/accounts-session/accounts_user_interactive_home_directory_exists/rule.yml", "template": null}