delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2008/12/07/22:34:23

X-Recipient: archive-cygwin AT delorie DOT com
X-Spam-Check-By: sourceware.org
To: cygwin AT cygwin DOT com
From: Matthias Meyer <Matthias DOT Meyer AT gmx DOT li>
Subject: Re: rsync restore the file owner but rsyncd do it not
Date: Mon, 08 Dec 2008 04:33:04 +0100
Lines: 47
Message-ID: <ghi4hm$q2$1@ger.gmane.org>
References: <ghhlj1$1tb$1 AT ger DOT gmane DOT org> <493C5E9C DOT 5E7B4C67 AT dessent DOT net>
Reply-To: Matthias DOT Meyer AT gmx DOT li
Mime-Version: 1.0
User-Agent: KNode/0.10.9
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

Brian Dessent wrote:

> Matthias Meyer wrote:
> 
>> My first questions:
>> What the reason for not copying the attributes "HS"?
> 
> rsync is a POSIX program.  It sees everything in terms of POSIX.  That
> means it sees a file mode, such as 0644, 0755, etc.  It reads a mode on
> the source and sets that same mode on the dest, that is it.  It has no
> idea what H/S/R/A attributes mean or that they even exist.
> 
> The A attribute gets set on the dest file simply because that is the
> default behavior when creating a file.  The R attribute gets set because
> Cygwin can map that bit easily onto the POSIX "u=w" mode bit, such that
> setting a mode like 0444 will cause R to be set and setting 0644 will
> cause R to be reset.  But S and H have no such easy mapping onto POSIX
> modes, so they aren't propagated.
> 
>> If I try "-X" I get an error "rsync: extended attributes are not
>> supported on this client"
> 
> Any EA support in rsync would most likely be some form of POSIX EA
> anyway, not R/H/S/A, so I don't think this really matters.
> 
>> The same behavior occurs with a file test.txt which is owned by:
>> ls -al shows - user mkgroup
>> ls -an shows - 1006 513
> 
> <http://cygwin.com/faq/faq-nochunks.html#faq.using.chmod>
> 
> Brian

Thanks Brian!

It seems I had run "bin\mkgroup -l > etc\passwd" instead "bin\mkgroup -l >
etc\group".
Now it works.
It seems that rsync (or cygwin) set the process-owner as file-owner if it
can not find the uid/gid within /etc/passwd and /etc/group.

Now I will try the game from windows client to linux server and return.

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/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019