This built-in function ensures that every user has a home directory. It passes if a valid directory is attributed to each user and fails otherwise. Note that home directory ownership or permissions are not tested by this check.

It is generally recommended that each user on a system have a home directory defined as some tools may need to read from it or write to it (for instance, sendmail checks for a ~/.forward file). If a user does not need to log in, a non-existent shell (e.g., /bin/false) should be defined instead. On many systems, a user with no home directory will still be granted login privileges but their effective home directory is /.



name: "accounts_without_home_dir"

description: "This check reports user accounts that do not have home directories."