How can I get the group SID for a file in cmd.exe (powershell is not an option)?
Cedric Blancher
cedric.blancher@gmail.com
Mon Mar 4 07:04:00 GMT 2024
On Tue, 27 Feb 2024 at 16:07, Corinna Vinschen via Cygwin
<cygwin@cygwin.com> wrote:
>
> 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}'
I need the exact Windows SID strings, without intermediate
translation. It's for a test suite written in cmd.exe (whoever had
that idea, but I do not have the resources to rewrite it).
Ced
--
Cedric Blancher <cedric.blancher@gmail.com>
[https://plus.google.com/u/0/+CedricBlancher/]
Institute Pasteur
More information about the Cygwin
mailing list