Here some tricks to find files and directories as per the linux DAC permissions
1. finding all files and directories with 0777 permission
[root@4hathacker mail]# find / -perm 0777 -print
2. find all files only with 0777 permission
[root@4hathacker mail]# find / -type f -perm 0777 -print
Note: for directories you can -type -d
3. files and directories without 777 permission
[root@4hathacker mail]# find / ! -perm 0777
** 4. files and directories with any special permission 7---
[root@4hathacker mail]# find / -perm /7000
1. finding all files and directories with 0777 permission
[root@4hathacker mail]# find / -perm 0777 -print
2. find all files only with 0777 permission
[root@4hathacker mail]# find / -type f -perm 0777 -print
Note: for directories you can -type -d
3. files and directories without 777 permission
[root@4hathacker mail]# find / ! -perm 0777
** 4. files and directories with any special permission 7---
[root@4hathacker mail]# find / -perm /7000