find files based on permission mode