Find files that do not have any owners or do not belong to any user under Linux/UNIX
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:
Subscribe to our free e-mail newsletter or RSS feed to get all updates.
You can Email this page to a friend.
Related Other Helpful FAQs:
- How do I search my Linux / UNIX server for a file?
- Linux or UNIX which groups do I belong to?
- Understanding /etc/group file
- Linux/UNIX: chmod error
- Linux or Unix find and remove files with one find command on fly
Leave a Reply
We encourage your comments, and suggestions. But please stay on topic, be polite, and avoid spam. Thank you very much for stopping by our site!


Recent Comments
Today ~ 32 Comments
Yesterday ~ 1 Comment
Yesterday ~ 3 Comments
Yesterday ~ 2 Comments
Yesterday ~ 3 Comments