delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2011/01/02/23:54:39

X-Recipient: archive-cygwin AT delorie DOT com
X-SWARE-Spam-Status: Yes, hits=5.8 required=5.0 tests=BAYES_20,BOTNET,RCVD_IN_DNSWL_NONE,SPF_NEUTRAL
X-Spam-Check-By: sourceware.org
Message-id: <4D215676.9010900@jackson.io>
Date: Sun, 02 Jan 2011 23:54:14 -0500
From: Ken Jackson <cygwin AT jackson DOT io>
User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.13) Gecko/20101209 Fedora/3.1.7-0.35.b3pre.fc14 Thunderbird/3.1.7
MIME-version: 1.0
To: cygwin AT cygwin DOT com
Subject: Re: unknown owner 4294967295 should be Adminstrators
References: <ifq7bt$dbo$1 AT dough DOT gmane DOT org>
In-reply-to: <ifq7bt$dbo$1@dough.gmane.org>
X-IsSubscribed: yes
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.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

> How to chown all files from 4294967295:18 to 544:18 or, at least, recognize
> the files to be owned by "Administrators".
>
> chown -R ... would not work because it will chown all files. Also the files
> not owned by 4294967295.
>
> chown -vR --from=4294967295:18 Adminstrators:SYSTEM ...
> chown: invalid user: `4294967295:18'
I don't have a cygwin system handy to test at the moment, but I think this will work.

find . -uid 4294967295 -exec chown Administrators {} +


BTW, did you notice that that number is suspiciously equal to 0xFFFFFFFF?

-Ken Jackson

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