{"description": "Assign home directories to all interactive users that currently do not\nhave a home directory assigned.\n\nThis rule checks if the home directory is properly defined in a folder which has\nat least one parent folder, like \"user\" in \"/home/user\" or \"/remote/users/user\".\nTherefore, this rule will report a finding for home directories like <tt>/users</tt>,\n<tt>/tmp</tt> or <tt>/</tt>.", "rationale": "If local interactive users are not assigned a valid home directory, there is no\nplace for the storage and control of files they should own.", "severity": "medium", "references": {"srg": ["SRG-OS-000480-GPOS-00227"]}, "control_references": {}, "components": [], "identifiers": {}, "ocil_clause": "users home directory is not defined", "ocil": "Verify that interactive users on the system have a home directory assigned with the following command:\n\n<pre>$ sudo awk -F: '($3&gt;=1000)&amp;&amp;($7 !~ /nologin/){print $1, $3, $6}' /etc/passwd</pre>\n\nInspect the output and verify that all interactive users (normally users with a UID greater than 1000) have a home directory defined.", "oval_external_content": null, "fixtext": "Assign home directories to all local interactive users on Ubuntu 22.04 that currently do not have a home directory assigned.", "checktext": "", "vuldiscussion": "", "srg_requirement": "All Ubuntu 22.04 local interactive users must have a home directory assigned in the /etc/passwd file.", "warnings": [], "conflicts": [], "requires": [], "policy_specific_content": {"stig": {"srg_requirement": "All Ubuntu 22.04 local interactive users must have a home directory assigned in the /etc/passwd file.", "vuldiscussion": "If local interactive users are not assigned a valid home directory, there is no place for the storage and control of files they should own.", "checktext": "Verify that interactive users on the system have a home directory assigned with the following command:\n\n$ sudo awk -F: '($3&gt;=1000)&&($7 !~ /nologin/){print $1, $3, $6}' /etc/passwd\n\nsmithk:x:1000:1000:smithk:/home/smithk:/bin/bash\nscsaustin:x:1001:1001:scsaustin:/home/scsaustin:/bin/bash\ndjohnson:x:1002:1002:djohnson:/home/djohnson:/bin/bash\n\nInspect the output and verify that all interactive users (normally users with a user identifier (UID) greater that 1000) have a home directory defined.\n\nIf users home directory is not defined, this is a finding.", "fixtext": "Create and assign home directories to all local interactive users on Ubuntu 22.04 that currently do not have a home directory assigned."}}, "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 Must Have A Home Directory Defined", "definition_location": "/aptdata/openscap/scap-security-guide/linux_os/guide/system/accounts/accounts-session/accounts_user_interactive_home_directory_defined/rule.yml", "template": null}