6.2.7 Ensure all users' home directories exist

Information

Users can be defined in /etc/passwd without a home directory or with a home directory that does not actually exist. If the user's home directory does not exist or is unassigned, the user will be placed in '/' and will not be able to write any files or have local environment variables set.

Solution

If any users' home directories do not exist, create them and make sure the respective user owns the directory. Users without an assigned home directory should be removed or assigned a home directory as appropriate.

See Also

https://workbench.cisecurity.org/files/1866

Item Details

Category: CONFIGURATION MANAGEMENT

References: 800-53|CM-6b.

Plugin: Unix

Control ID: 635e1eaabf165ebef7ffa4e9deb1c8644a6ca21bdcf00406021a1a91d718d18e