On Mon, Jan 3, 2022 at 8:17 AM 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 op
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-
2 matches
Mail list logo