Performing Security Hardening on Ownerless Files
You can run the following command to find unowned files in the system:
1 | find / -nouser -o -nogroup |
Create corresponding users and user groups based on the UIDs and GIDs of the files, or modify the UIDs of existing users and GIDs of existing user groups to match them. Then, set the file owners properly to eliminate security risks brought by unowned files to the system.
Parent topic: Security Hardening