Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Is there anyway I can list all the files that belong to a particular owner?

Additionally can I list all the files that belong to a group?

share|improve this question
up vote 9 down vote accepted

find should answer:

sudo find / -user root

To search a specific directory, just replace / with the full path. You can drop the sudo part of the command if you don't mind warnings about being unable to read special files.

For group ownership finds, use:

sudo find / -group root
share|improve this answer
I was going to suggest some hackery using cut and grep, but this is much cleaner. – Huckle Mar 22 '12 at 4:00
Thanks Caleb, this works well – user784637 Mar 22 '12 at 15:31

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.