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

X-Recipient: archive-cygwin AT delorie DOT com
X-SWARE-Spam-Status: No, hits=-0.4 required=5.0 tests=AWL,BAYES_00,RCVD_NUMERIC_HELO,SPF_HELO_PASS
X-Spam-Check-By: sourceware.org
To: cygwin AT cygwin DOT com
From: Andrew DeFaria <Andrew AT DeFaria DOT com>
Subject: Re: Resolving '????????' users and groups
Date: Mon, 01 Mar 2010 22:50:03 -0800
Lines: 36
Message-ID: <hmicet$jj5$1@dough.gmane.org>
References: <4B8CA8D3 DOT 6010508 AT wesbarris DOT com>
Mime-Version: 1.0
User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.9pre) Gecko/20100217 Lightning/1.0pre Shredder/3.0.3pre
In-Reply-To: <4B8CA8D3.6010508@wesbarris.com>
X-Stationery: 0.5.1
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 03/01/2010 09:57 PM, Wes Barris wrote:
> I'm trying to find a solution for my files being listed with '????????'
> as the owner and group:
>
> -rw-r--r-- 1 ???????? ????????  137894 2010-02-25 11:34 1536.gff
>
> The following page partially addresses this:
>
> http://www.cygwin.com/cygwin-ug-net/ntsec.html
>
> It says that:
>
> --------------------------
> If another user (or a Windows group, treated as a user) is not present
> in /etc/passwd, the uid of that user will have a special value of -1
> (which would be shown by ls as 65535). The user name shown in this
> case will be '????????'.
> --------------------------
>
> I would like to modify the /etc/passwd file so that it shows me
> as the owner of these files instead of '????????'.  That page
> shows how /etc/passwd is used to create a mapping between Windows
> Security SIDs and Cygwin uids.
>
> How do I find/list the Windows SIDs of these files so that I can
> create the proper mapping in /etc/passwd?
How about:

$ mkpasswd -d >> /etc/passwd
$ ls -l <file>

and see who owns it?
-- 
Andrew DeFaria <http://defaria.com>
I went to a general store, but they wouldn't let me buy anything specific.


--
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