X-Recipient: archive-cygwin@delorie.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.6010508@wesbarris.com> <hmicet$jj5$1@dough.gmane.org>  	<4B8D9016.3060104@wesbarris.com>
From: "DePriest, Jason R." <jrdepriest@gmail.com>
Date: Tue, 2 Mar 2010 16:33:52 -0600
Message-ID: <31b7d2791003021433g32545732kc60bc27ae34c2f1b@mail.gmail.com>
Subject: Re: Resolving '????????' users and groups
To: cygwin@cygwin.com
Content-Type: text/plain; charset=ISO-8859-1
X-IsSubscribed: yes
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
Precedence: bulk
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie.com@cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.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

