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

Sai Krishna is a DevOps Engineer at Pheonix Solutions with 4.5 years of experience in cloud infrastructure, Linux administration, Docker, CI/CD, monitoring, backups, and security. His expertise includes infrastructure management, troubleshooting, and maintaining reliable and secure environments.

Leave a Reply

Scroll to Top