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.blanc...@gmail.com> [https://plus.google.com/u/0/+CedricBlancher/] Institute Pasteur -- Problem reports: https://cygwin.com/problems.html FAQ: https://cygwin.com/faq/ Documentation: https://cygwin.com/docs.html Unsubscribe info: https://cygwin.com/ml/#unsubscribe-simple