Date: Tue, 20 Feb 2018 22:46:20 +0100 From: Albert Shih <Albert.Shih@obspm.fr> To: "James B. Byrne" <byrnejb@harte-lyne.ca> Cc: freebsd-questions@freebsd.org Subject: Re: WebDAV permissions anomoly (FreeBSD-1, Apache24) Message-ID: <20180220214620.GA1284@io.chezmoi.fr> In-Reply-To: <b22f9d8f2d15d809a2e1c5de0c7ed164.squirrel@webmail.harte-lyne.ca> References: <8dd22f1fb178c6d2484bc1ed16f5fefb.squirrel@webmail.harte-lyne.ca> <20180220184207.GC13752@io.chezmoi.fr> <b22f9d8f2d15d809a2e1c5de0c7ed164.squirrel@webmail.harte-lyne.ca>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20180220214620.GA1284>