From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 2155) id 5BF03385840B; Tue, 27 Feb 2024 15:05:47 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 5BF03385840B DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cygwin.com; s=default; t=1709046347; bh=Z+CdrMzQtyP6fAoZ/NNjSu9IrQyuUa3JgIRdWcGCWYc=; h=Date:From:To:Subject:Reply-To:References:In-Reply-To:From; b=ywNaQyGFATgvknjyYCEdpe0IB2TmLOKbJgg1zSMJtJ3JJUNiscWQAwnaR5Ip2kmxB V615v3kvr762SM8cjS2rCz1Eh3jMTUkMV3x7QyUvi96OoCX7AU+3d1C0L+gkdfs+v1 K8cbnrYabWQMhFu9oUAN0HRfQMWGsG5u0D3cvg80= Received: by calimero.vinschen.de (Postfix, from userid 500) id 46B1EA80A41; Tue, 27 Feb 2024 16:05:45 +0100 (CET) Date: Tue, 27 Feb 2024 16:05:45 +0100 From: Corinna Vinschen To: cygwin@cygwin.com Subject: Re: How can I get the group SID for a file in cmd.exe (powershell is not an option)? Message-ID: Reply-To: cygwin@cygwin.com Mail-Followup-To: cygwin@cygwin.com References: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: List-Id: 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