I want to find list of all suid binaries. I use the command
find / -perm 4000
However this does not give me any output. I understand that the SUID file may be in 4xxx permission mode. But if I issue the command
find / -perm -4000 (which all websites tell)
or the command
find / -perm +4000
both give me the same result. As far I understand it should always be +4000 (because if it is user suid binary then the first byte should be 4, if group suid binary then the first byte should be 2 and if a sticky bit turned on directory then the first byte should be 1). Then how come -4000 also give results?