17.15 Searching for Files by Permission[If you aren't comfortable with octal numbers and the way UNIX uses them in file permissions, article 1.23 in is good background reading. -JP]
find
can look for files with specific permissions.
It uses an octal number for these permissions. The string
% To see if you have any directories with write permission for everyone, use: % The examples above only match an exact combination of permissions.
If you wanted to find all directories with group write permission,
you want to match the pattern
% will match the following common permissions:
If you wanted to look for files that you can execute
(i.e., shell scripts or programs),
you want to match the pattern
% When the -perm argument has a minus sign, all of the permission bits are examined, including the set user ID bits (1.23 ) . - |
|