On Mon, Jan 3, 2022 at 8:17 AM <cyg...@kosowsky.org> wrote:
> So, why is 'cp -a' able to preserve ownership while 'rsync -a' fails
> and sets ownership to the login name?

Rsync is rather old-school Unix-oriented, so it only checks if its uid
is 0 to see if it should try to chown things.  You can give it the
--super option to tell it to try root things when you're a non-0 user,
which works in my testing.

..wayne..

-- 
Problem reports:      https://cygwin.com/problems.html
FAQ:                  https://cygwin.com/faq/
Documentation:        https://cygwin.com/docs.html
Unsubscribe info:     https://cygwin.com/ml/#unsubscribe-simple

Reply via email to