Performing Security Hardening on Ownerless Files
You can run the following command to search for files without owners in the system:
1 | find / -nouser -o -nogroup |
You can create users and user groups based on the UIDs and GIDs of the files, or change the UIDs of existing users or the GIDs of user groups to assign file ownership, thereby preventing security risks caused by ownerless files.
Parent topic: Security Hardening