GEN001160 - All files and directories must have a valid owner.

Information

Unowned files and directories may be unintentionally inherited if a user is assigned the same UID as the UID of the unowned files.

Solution

All directories and files (executable and data) will have an identifiable owner and group name. Either trace files to an authorized user, change the file's owner to root, or delete them. Determine the legitimate owner of the files and use the chown command to set the owner and group to the correct value. If the legitimate owner cannot be determined, change the owner to root (but make sure none of the changed files remain executable because they could be Trojan horses or other malicious code). Examine the files to determine their origin and the reason for their lack of an owner/group.
#chown <a-valid-user> <directory>/<file>

See Also

http://iasecontent.disa.mil/stigs/zip/U_STIG_Library_2015_07.zip

Item Details

Category: CONFIGURATION MANAGEMENT

References: 800-53|CM-6b., CAT|II, CCI|CCI-000366, Rule-ID|SV-38942r1_rule, STIG-ID|GEN001160, Vuln-ID|V-785

Plugin: Unix

Control ID: c90002730c27733abbdf12b415ad0855b639359e4f2aab89b046095d197dee17