How can I get the group SID for a file in cmd.exe (powershell is not an option)?

Corinna Vinschen corinna-cygwin@cygwin.com
Tue Feb 27 15:05:45 GMT 2024


On Feb 27 15:41, Cedric Blancher via Cygwin wrote:
> Good afternoon!
> 
> How can I get the group SID for a file in cmd.exe (powershell is not an option)?
> Is it possible to add an option to ls -l to list the user/group SIDs too?

No, but you can use Cygwin tools:

 getent -w group $(ls -gn foo | awk '{print $3}') | awk -F: '{print $4}'


Corinna


More information about the Cygwin mailing list