WebDAV permissions anomoly (FreeBSD-1, Apache24)

Valeri Galtsev galtsev at kicp.uchicago.edu
Tue Feb 20 22:48:03 UTC 2018



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 at obspm.fr
> Heure local/Local time:
> Tue Feb 20 22:40:26 CET 2018
> _______________________________________________
> freebsd-questions at freebsd.org mailing list
> https://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to "freebsd-questions-unsubscribe at freebsd.org"
> 

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


More information about the freebsd-questions mailing list