delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2010/03/02/17:34:28

X-Recipient: archive-cygwin AT delorie DOT com
X-SWARE-Spam-Status: No, hits=-1.9 required=5.0 tests=AWL,BAYES_00,SARE_MSGID_LONG40
X-Spam-Check-By: sourceware.org
MIME-Version: 1.0
In-Reply-To: <4B8D9016.3060104@wesbarris.com>
References: <4B8CA8D3 DOT 6010508 AT wesbarris DOT com> <hmicet$jj5$1 AT dough DOT gmane DOT org> <4B8D9016 DOT 3060104 AT wesbarris DOT com>
From: "DePriest, Jason R." <jrdepriest AT gmail DOT com>
Date: Tue, 2 Mar 2010 16:33:52 -0600
Message-ID: <31b7d2791003021433g32545732kc60bc27ae34c2f1b@mail.gmail.com>
Subject: Re: Resolving '????????' users and groups
To: cygwin AT cygwin DOT com
X-IsSubscribed: yes
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com

On Tue, Mar 2, 2010 at 4:24 PM, Wes Barris <> wrote:
> mkpasswd -d would return all of the domain users (we have thousands).
> However, I know that these files are not owned by anyone else.
> The files in question are coming from a samba share (mapped network
> drive) served from a Linux system.
>
> Isn't there a way so see the SID of a file?
>
> --
> Wes Barris

You can use ls -n to see the user unique part of the SID or use the
Windows tool cacls to see the names in human readable format.

Using cacls is easier.

With ls -n you still have to reverse engineer the full SID and then
use some other tool to convert it to a user or group name.  Or use
mkpasswd / mkgroup to dump the entire domain and grep it for the bit
of SID you have.

-Jason

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019