From owner-freebsd-questions@freebsd.org Tue Feb 20 21:46:23 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 33E6FF0678C for ; Tue, 20 Feb 2018 21:46:23 +0000 (UTC) (envelope-from Albert.Shih@obspm.fr) Received: from mx-p1.obspm.fr (mx-p1.obspm.fr [145.238.193.20]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "*.obspm.fr", Issuer "TERENA SSL CA 3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id B61EF71F4F for ; Tue, 20 Feb 2018 21:46:22 +0000 (UTC) (envelope-from Albert.Shih@obspm.fr) Received: from io.chezmoi.fr (vpn.obspm.fr [145.238.186.39]) (authenticated bits=0) by mx-p1.obspm.fr (8.14.4/8.14.4/DIO Observatoire de Paris - 15/04/10) with ESMTP id w1KLkJaE180582 (version=TLSv1/SSLv3 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 20 Feb 2018 22:46:21 +0100 Date: Tue, 20 Feb 2018 22:46:20 +0100 From: Albert Shih To: "James B. Byrne" Cc: freebsd-questions@freebsd.org Subject: Re: WebDAV permissions anomoly (FreeBSD-1, Apache24) Message-ID: <20180220214620.GA1284@io.chezmoi.fr> References: <8dd22f1fb178c6d2484bc1ed16f5fefb.squirrel@webmail.harte-lyne.ca> <20180220184207.GC13752@io.chezmoi.fr> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: User-Agent: Mutt/1.9.3 (2018-01-21) X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.5.11 (mx-p1.obspm.fr [145.238.193.20]); Tue, 20 Feb 2018 22:46:21 +0100 (CET) X-Virus-Scanned: clamav-milter 0.99.3 at mx-p1.obspm.fr X-Virus-Status: Clean 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 21:46:23 -0000 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. 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