Test whether file is owned by a specific group from bash or powershell level?
Sebastian Feld
sebastian.n.feld@gmail.com
Fri Jun 20 12:15:33 GMT 2025
Does Cygwin or POSIX have a tool to test whether a file is owned by a
specific group?
Win32, like Linux and POSIX, has the concept that files have an owner,
and a group (ref:https://learn.microsoft.com/en-us/windows/win32/api/aclapi/nf-aclapi-getsecurityinfo).
How can I test whether a file is owned by a given group name, or not?
/usr/bin/test -g and -G do not help because they only look and gid,
egid. But I want to pass the group's name as an argument.
Sebi
--
Sebastian Feld - IT security consultant
More information about the Cygwin
mailing list