In some condition’s, you may required 777 permissions like log file etc. But mostly we don’t required it. This tutorial will help you to search files with 777 permission on your Linux/Unix system via find command. Syntax: The -perm command line parameter is used with find command to search files based on permissions. You can use any permission instead of 777 to find files with that permissions only. For example to search all files with permission 777 under the logged in user home directory, type: The above command will search all files and directories with permission 777 under the specified directory.
But if you don’t want to include directories in this list. Define the type with -type on command line parameter as below. This will search only files with permission 777 under the /var/www directory.
To search directory only, type: Hope this tutorial helps you search files based on permissions and secure your Linux/Unix system.