How to find files that don't belong to a given user

10

How do I recursively search for all files or directories that do not belong to given user?

nothing-special-here

Posted 2011-10-13T10:26:11.273

Reputation: 605

Answers

17

If the user was john:

 $ find . ! -user john

From man find:

Operators
! expr True if expr is false.

ktf

Posted 2011-10-13T10:26:11.273

Reputation: 2 168