How to find files based on permissions and ownership?

1. Finding files by ownership.

Find a file owned by a specific group.

$ find /home -group groupname

Find a file owned by a specific user:

$ find /home -user username

2. Finding files by permission.

Find files of a specific set of permissions, 777 in this example:

$ find /home -perm 777

Find files of a specific set of permissions, 734 in this example:

$ find /home -perm 734

Saikrishna Areddy

Writes about Web & Architecture at Pheonix Solutions.

Leave a Reply

Scroll to Top