From owner-freebsd-questions@freebsd.org Tue Feb 20 22:48:03 2018 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id E9A32F0D1B6 for ; Tue, 20 Feb 2018 22:48:02 +0000 (UTC) (envelope-from galtsev@kicp.uchicago.edu) Received: from kicp.uchicago.edu (kicp.uchicago.edu [128.135.20.70]) by mx1.freebsd.org (Postfix) with ESMTP id 968D97561E for ; Tue, 20 Feb 2018 22:48:02 +0000 (UTC) (envelope-from galtsev@kicp.uchicago.edu) Received: from point.uchicago.edu (point.uchicago.edu [128.135.52.6]) by kicp.uchicago.edu (Postfix) with ESMTP id DCFE9718010; Tue, 20 Feb 2018 16:47:55 -0600 (CST) Subject: Re: WebDAV permissions anomoly (FreeBSD-1, Apache24) To: Albert Shih , "James B. Byrne" Cc: freebsd-questions@freebsd.org References: <8dd22f1fb178c6d2484bc1ed16f5fefb.squirrel@webmail.harte-lyne.ca> <20180220184207.GC13752@io.chezmoi.fr> <20180220214620.GA1284@io.chezmoi.fr> From: Valeri Galtsev Message-ID: <58812594-8e59-1018-d387-17e449d6e85a@kicp.uchicago.edu> Date: Tue, 20 Feb 2018 16:47:55 -0600 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:52.0) Gecko/20100101 Thunderbird/52.6.0 MIME-Version: 1.0 In-Reply-To: <20180220214620.GA1284@io.chezmoi.fr> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 20 Feb 2018 22:48:03 -0000 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 ++++++++++++++++++++++++++++++++++++++++