Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 20 Feb 2018 16:47:55 -0600
From:      Valeri Galtsev <galtsev@kicp.uchicago.edu>
To:        Albert Shih <Albert.Shih@obspm.fr>, "James B. Byrne" <byrnejb@harte-lyne.ca>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: WebDAV permissions anomoly (FreeBSD-1, Apache24)
Message-ID:  <58812594-8e59-1018-d387-17e449d6e85a@kicp.uchicago.edu>
In-Reply-To: <20180220214620.GA1284@io.chezmoi.fr>
References:  <8dd22f1fb178c6d2484bc1ed16f5fefb.squirrel@webmail.harte-lyne.ca> <20180220184207.GC13752@io.chezmoi.fr> <b22f9d8f2d15d809a2e1c5de0c7ed164.squirrel@webmail.harte-lyne.ca> <20180220214620.GA1284@io.chezmoi.fr>

next in thread | previous in thread | raw e-mail | index | archive | help


On 02/20/18 15:46, Albert Shih wrote:
> Le 20/02/2018 à 14:54:13-0500, James B. Byrne a écrit
>>
>> On Tue, February 20, 2018 13:42, Albert Shih wrote:
>>>
>>> Do you have add
>>>
>>>      --numeric-ids
>>>
>>> options on your rsync commands ?
>>>
>>
>> This is the rsync command used on the original host:
>>
>> rsync  --recursive  --copy-links  --verbose  --specials  --times
>> -e"ssh "   /var/data/hll_dav    hll107:/usr/local/www/apache24/data
>>
>>
>> So, the answer is no, I did not use '--numeric-ids'.
> 
> I'm not sure it's the reason, but be very careful when you use rsync, if
> you can have problem with ownership.
> 
> If you don't use --numeric-ids and let's say on your primary server you get
> a file own by X, and another by Y, on the target (rsync) server if X exist
> and Y does not, you going to have the first file correctly own by X, and
> the second own by root. So you can break your software with that.
> 
> On the other hand if you use --numeric-ids you need...also to be very
> careful because rsync going to copy just the numeric-id so the file own by
> X on the primary server can be own by Y on the target server.

I usually use

rsync -avu ...

which I believe covers that and a lot more (like copying symlinks as 
such, not original file in place of symlink; timestamps...), where -a 
equals --archive which is a set -rlptgoD

Just my $0.02

Valeri

> 
> So in "general" the best way to do rsync is to synchronize first your
> /etc/passwd.
> 
> Regards.
> --
> Albert SHIH
> xmpp: jas@obspm.fr
> Heure local/Local time:
> Tue Feb 20 22:40:26 CET 2018
> _______________________________________________
> freebsd-questions@freebsd.org mailing list
> https://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org"
> 

-- 
++++++++++++++++++++++++++++++++++++++++
Valeri Galtsev
Sr System Administrator
Department of Astronomy and Astrophysics
Kavli Institute for Cosmological Physics
University of Chicago
Phone: 773-702-4247
++++++++++++++++++++++++++++++++++++++++



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?58812594-8e59-1018-d387-17e449d6e85a>