Some directories are accessible only by root. If you run find under /etc as normal user, you will get these messages. However, they are redirected to standard error
, whereas the actual results of the find command are directed to standard output
. You can filter out the standard error, by redirecting it to /dev/null (the black hole of unix systems):
find /etc -name passwd 2> /dev/null
Hope this helps.