Quote:
Originally Posted by
Mook
Thank you, I know have a copy! I meant without any other alternatives and, I think I have some sort of misunderstanding... So -gid will show me the files that a user group has access too?
We can't answer that without knowing what operating system you're using.
And lots of other factors affect file access in addition to the file's numeric group ID and/or alphanumeric group name. If you're using GNU utilities
find AND the effective user ID of the process trying to access the file does not have permission to do so AND there is no ACL associated with this file AND the number given as the argument to the
-gid primary is a valid group ID AND (the effective group ID or one of the supplementary group IDs of the running process matches the file's group ID OR the permissions on the file allow anyone to perform the type of access the process is requesting) then the process has access to open the file, remove the file, truncate the file, or rename the file. And, of course, depending on what you are trying to do, other restrictions might apply such as the time of day, the number of links to the file, etc. which might further restrict access to a file.
If you're using a BSD-based
find utility, the results are based on a group name or group ID instead of just a group ID.