From: "" <cygwin@kosowsky.org>
To: cygwin@cygwin.com
Subject: 'rsync -a' not preserving ownership
Date: Mon, 3 Jan 2022 11:17:13 -0500 [thread overview]
Message-ID: <25043.8585.322210.817972@consult.pretender> (raw)
I am running cygwin as Administrator and tried this under both Win7
and Win10.
# touch test
# chown Administrators.SYSTEM test
# rsync -a test test2
# cp -a test test3
# ls -al test*
-rw-r--r-- 1 Administrators SYSTEM 0 Jan 3 11:00 test
-rw-r--r-- 1 myname None 0 Jan 3 11:00 test2
-rw-r--r-- 1 Administrators SYSTEM 0 Jan 3 11:00 test3
Note that perms are copied properly (which I validated by trying with
other perm combos)
So, why is 'cp -a' able to preserve ownership while 'rsync -a' fails
and sets ownership to the login name?
next reply other threads:[~2022-01-03 16:17 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-01-03 16:17 cygwin [this message]
2022-01-04 5:23 ` Wayne Davison
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=25043.8585.322210.817972@consult.pretender \
--to=cygwin@kosowsky.org \
--cc=cygwin@cygwin.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).