You can use find command to find out all files that do not have any owners or do not belong to any user under Linux/UNIX/BSD operating systems.
Find file owned by user id 1050 (useful if you deleted user account):
# find / -uid 1050
Find out all files that are not owned by any user:
# find / -nouser
Find out all files that are not owned by any group:
# find / -nogroup
For example in real life on busy clustered hosting server some time we remove 5-10 users and for security reasons you need to find out all files are not owned by any user or group then you can type command:
# find / -nogroup -nouser
See also:
Featured Articles:
- 20 Linux System Monitoring Tools Every SysAdmin Should Know
- 20 Linux Server Hardening Security Tips
- My 10 UNIX Command Line Mistakes
- Linux: 20 Iptables Examples For New SysAdmins

- 25 PHP Security Best Practices For Sys Admins
- The Novice Guide To Buying A Linux Laptop
- 10 Greatest Open Source Software Of 2009
- Top 5 Email Client For Linux, Mac OS X, and Windows Users
- Top 20 OpenSSH Server Best Security Practices
- Top 10 Open Source Web-Based Project Management Software
- Top 5 Linux Video Editor Software
Facebook it - Tweet it - Print it -
