• The expression will define how to search and match files and what to do with them. Here you see that find is very powerful and has a lot of options.
  • find . -perm 754. ... find . -perm u=rwx,g=rx,o=r. Same as the above command, but uses a symbolic representation of the permission bits.
  • sudo find /usr -type f -perm /u=s. ... find /etc -maxdepth 1 -perm /u=r.
    • -newer file: search for the file names that are modified after “file”.
    • -perm octal: search for the files if the permission is ‘octal’.
    Linux Find -perm option.
  • find . -perm 0600. ... find dira dirb dirc -perm -0600 -print. We highly recommend the following article to get more info about file permissions in Linux.
  • find . -perm -g-r. It shows me all of the files?? So I tried this ... It appears that -perm -g-r matches all files. I'm using CentOS 5.5. Am I doing something wrong?
  • 21. Find All Files with 777 Permissions and chmod to 644. $ find / -type f -perm 0777 -print -exec chmod 644 {} \
  • Using -perm argument, you can search for files that have a specific permission. Here's the syntax: find [path] -perm [permissions] [options].
  • To find files that are fully accessible to any user, we use the search parameter “-perm” followed by the value “777” ... find . -perm 700.
  • To find files based on their set permissions, you will need to use the “-perm” option, followed by the numerical permission.