[OpenIndiana-discuss] Cygwin "cp" from Windows client does not preserve permissions
Andrew Martin
amartin at xes-inc.com
Tue Jun 23 22:45:33 UTC 2015
Hello,
I am running an OpenIndiana server exporting a ZFS share over CIFS to a number of
Windows 7 clients. I have a folder on the share with these ACLs:
A:fi:OWNER@:rwaDdtTnNcoy
A:dg:Domain Users at domain.com:rwaDdxtTnNcoy
A:fig:Domain Users at domain.com:rwaDdtTnNcoy
A:fig:GROUP@:rtncy
A::OWNER@:rwaxtTnNcCoy
A:g:GROUP@:rwaxtncy
A::EVERYONE@:tncy
I have two files in this folder with the following ACLs set on them:
file1.txt:
A:g:Domain Users at domain.com:rwadtTnNcoy
A::OWNER@:rwatTnNcCoy
A:g:GROUP@:rwatncy
A::EVERYONE@:tncy
file2.txt:
A:g:Domain Users at domain:rwadtTnNcoy
A::OWNER@:rwatTnNcCoy
A:g:GROUP@:rwatncy
A::EVERYONE@:tncy
>From a Windows 7 client, if I use cygwin's version of cp to copy these files
into a subdirectory, the permissions change:
mkdir subdir1
cp file*.txt subdir1
subdir1/file1.txt:
A::amartin at domain.com:rwadtTnNcCoy
A:g:Domain Users at domain.com:rtncy
A::OWNER@:rwatTnNcCoy
A:g:GROUP@:rtncy
A::EVERYONE@:tncy
subdir1/file2.txt:
D::OWNER@:r
D::amartin at domain.com:r
A::amartin at domain.com:dtTcCoy
A:g:Domain Users at domain.com:rtncy
A::OWNER@:watTnNcCoy
A:g:GROUP@:rtncy
A::EVERYONE@:tncy
Performing the same operation from Windows Explorer or using the GnuWin32
version of cp preserves the correct permissions. Has anyone observed this
incorrect behavior when using cygwin cp, or do you have any ideas on how to fix
this problem? I have also tried "cp -a" as well as "cp --no-preserve=all" but
the problem still exists.
Thanks,
Andrew Martin
More information about the openindiana-discuss
mailing list