X-Recipient: archive-cygwin@delorie.com
X-Spam-Check-By: sourceware.org
To: cygwin@cygwin.com
From: Matthias Meyer <Matthias.Meyer@gmx.li>
Subject:  Re: NT-Authority/System will be file owner after rsync restore
Date:  Tue, 02 Dec 2008 22:17:09 +0100
Lines: 37
Message-ID:  <gh48ko$l26$1@ger.gmane.org>
References:  <ggv36a$mkb$1@ger.gmane.org> <493317D0.1030805@cygwin.com> <gh1nks$sh0$1@ger.gmane.org> <49346E40.4050003@cygwin.com>
Reply-To: Matthias.Meyer@gmx.li
Mime-Version:  1.0
Content-Type:  text/plain; charset=us-ascii
Content-Transfer-Encoding:  7Bit
User-Agent: KNode/0.10.9
X-IsSubscribed: yes
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

Larry Hall (Cygwin) wrote:

> Matthias Meyer wrote:
> 
>> create a new file /etc/test.txt
>> bin>ls -alh /etc/test.txt
>> bin>-rwx------+ 1 meyer Kein 0 Dec  1 23:01 /etc/test.txt
>> 
>> Than I run a backup:
>> After that my backup-protocol shows:
>>   create   644    18/544           0 etc/Test.txt
>> 
>> But 18/544 is SYSTEM:Administratoren
>> as /etc/passwd -> SYSTEM:*:18:544:,S-1-5-18::
>> and /etc/group -> Administratoren:S-1-5-32-544:544:
>> shows.
>> 
>> I've tried this with both, "cygrunsrv -I backup ..." as well as
>> with "cygrunsrv -I backup -e CYGWIN=nontsec ..."
>> 
>> Any further hint?
> 
> Well services on <= XP run under the local system account so I'm
> guessing that your backup service is using the permissions of the
> creator of the backup files rather than the original permissions.
> 'rsync', according to the man page, says that it has '-p' and
> '-A' flags to preserve the original permission IDs (or '-a' which
> includes '-p').  Are you using any of these?
> 
--archive == -rlptgoD
(--recursive, --links, --perms, --times, --group, --owner, -D)
I use all of them in both, by backup as well as by restore.

br
Matthias
-- 
Don't panic


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

