X-Recipient: archive-cygwin AT delorie DOT com DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org BF5663858420 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cygwin.com; s=default; t=1709046423; bh=xwrzYTa/s7HgsTiH/2wu06vYhOg7kJg7Ltg3IuT2JoU=; h=Date:To:Subject:References:In-Reply-To:List-Id:List-Unsubscribe: List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To:Cc: From; b=d+7WnI+h7EYQVpDc6luCthe4I8/Ui2vOmV8wCD7k2mhZcuvQDQTQuHIG1NmV1V55p 9jcO+qNolDLQorfiBSLBNdvk/H3vjIRqPdG7y6c8pEekW7JuytAEtLGWwf0L8z3dHw B7J/RrZX5WN0i7D1wnYEe41jlIA8HKwhSrRmknbU= X-Original-To: cygwin AT cygwin DOT com Delivered-To: cygwin AT cygwin DOT com DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 5BF03385840B Date: Tue, 27 Feb 2024 16:05:45 +0100 To: cygwin AT cygwin DOT com Subject: Re: How can I get the group SID for a file in cmd.exe (powershell is not an option)? Message-ID: Mail-Followup-To: cygwin AT cygwin DOT com References: MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: X-BeenThere: cygwin AT cygwin DOT com X-Mailman-Version: 2.1.30 Precedence: list List-Id: General Cygwin discussions and problem reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , From: Corinna Vinschen via Cygwin Reply-To: cygwin AT cygwin DOT com Cc: Corinna Vinschen Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: cygwin-bounces+archive-cygwin=delorie DOT com AT cygwin DOT com Sender: "Cygwin" 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 -- 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