In Linux, is there a way to do a search for files owned by multiple users (or group(s) of users) with the "find" command?
Something like this?
find . -user john, akido
Super User is a question and answer site for computer enthusiasts and power users. It only takes a minute to sign up.Sign up to join this community
Try using the
-o syntax like this:
find ./ -user john -o -user akido
For further references, check Linux / Unix: Find All The Files Owned By a Particular User / Group
If you want to check the files belonging to users of a specific group:
find ./ -group name_of_group