X-Recipient: archive-cygwin@delorie.com
X-SWARE-Spam-Status: No, hits=-1.1 required=5.0	tests=AWL,BAYES_00,RCVD_IN_DNSWL_NONE
X-Spam-Check-By: sourceware.org
X-Yahoo-SMTP: Uu383n6swBCEN1G9up0WSnxbvN8fCPmk
Message-ID: <4D20CC45.8060304@cygwin.com>
Date: Sun, 02 Jan 2011 14:04:37 -0500
From: "Larry Hall \(Cygwin\)" <reply-to-list-only-lh@cygwin.com>
Reply-To: cygwin@cygwin.com
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.1.21) Gecko/20090320 Remi/2.0.0.21-1.fc8.remi Lightning/0.9 Thunderbird/2.0.0.21 Mnenhy/0.7.5.0
MIME-Version: 1.0
To: cygwin@cygwin.com
Subject: Re: Owner/Group showing up as "??????????" on some Windows files despite mkpasswd/mkgroup
References: <19740.3764.509174.665204@consult.pretender> <4D1CA7C9.4020807@cygwin.com> <30570563.post@talk.nabble.com> <AANLkTincJp_sk9_Gg_3bfDo2sACFH_xgrgAH+VNphToa@mail.gmail.com> <30571878.post@talk.nabble.com>
In-Reply-To: <30571878.post@talk.nabble.com>
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Id: <cygwin.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 1/2/2011 9:09 AM, aputerguy wrote:
> Csaba Raduly-2 wrote:
>>
>> On Sun, Jan 2, 2011 at 7:59 AM, aputerguy wrote:
>>> If trustedinstaller is a valid file owner then I would like it to show up
>>> as
>>> the file owner in cygwin so that rsync transfers it over properly.
>>> Presumably this would mean adding it to my /etc/passwd file though I'm
>>> not
>>> sure what would be the best entry to use.
>>>
>>> On the other hand if trustedinstaller SHOULD NOT be owning any files and
>>> its
>>> just an error on my windows system then I would like to correct the file
>>> ownership in windows so that the files have the correct owners.
>>
>> On Windows 7 and Vista, "trustedinstaller" owns (and is supposed to
>> own) all the files of the OS:
>>
>> http://technet.microsoft.com/en-us/magazine/2007.06.acl.aspx
>> (quoted in
>> http://www.vistax64.com/vista-security/87679-trusted-installer.html#post528738
>> )
>>
>
> If so, wouldn't it make sense to add trustedinstaller to the passwd and
> group file to distinguish those files that have a legitimate ownership from
> others that truly may be owned by an unknown user?

Sure.  But the point is that the SID isn't considered a Windows user so that's
why it doesn't show up by default.  As a work-around for now, you can add a
line like this to your '/etc/passwd' file:

TrustedInstaller:unused:80:544:Trusted Installer,U-NT 
SERVICE\TrustedInstaller,S-1-5-80-956008885-3418522649-1831038044-1853292631-2271478464::

(The above is all on one line)

This will make "TrustedInstaller" show up as the user, just like you will see
in Windows.  The group is still '????????' though.  I'll leave tracking down
the proper SID for the group as an exercise for the reader. ;-)
-- 
Larry

_____________________________________________________________________

A: Yes.
> Q: Are you sure?
>> A: Because it reverses the logical flow of conversation.
>>> Q: Why is top posting annoying in email?

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

