The -perm
flag matches files and folders with a given permission. Both numeric and symbolic permissions are allowed.
Use the /
or -
prefix to match files with any of the specified permissions or at least the specified permissions. For example, -perm -644
will match any file where the current user has at least read + write access and any other user has at least read access (so, -
requires the specified permissions, but is agnostic as to the presence/absence of additional permissions). Likewise, -perm /666
will match files where the current user has read + write access and/or the current group has read + write access and/or everyone has read + write access (so, /
requires that at least one of the specified permissions groups matches exactly, but is agnostic to the state of any other group outside of that match).