Cygwin "cp" changes ACLs on files accessed via CIFS

Andrew Martin amartin@xes-inc.com
Wed Jun 24 17:11:00 GMT 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@domain.com:rwaDdxtTnNcoy
A:fig:Domain Users@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@domain.com:rwadtTnNcoy
A::OWNER@:rwatTnNcCoy
A:g:GROUP@:rwatncy
A::EVERYONE@:tncy

file2.txt:
A:g:Domain Users@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@domain.com:rwadtTnNcCoy
A:g:Domain Users@domain.com:rtncy
A::OWNER@:rwatTnNcCoy
A:g:GROUP@:rtncy
A::EVERYONE@:tncy

subdir1/file2.txt:
D::OWNER@:r
D::amartin@domain.com:r
A::amartin@domain.com:dtTcCoy
A:g:Domain Users@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 -p" as well as "cp --no-preserve=all" but
the problem still exists.

Thanks,

Andrew Martin
-------------- next part --------------
A non-text attachment was scrubbed...
Name: cygcheck.out
Type: application/octet-stream
Size: 79848 bytes
Desc: not available
URL: <http://cygwin.com/pipermail/cygwin/attachments/20150624/8be5cbf7/attachment.obj>
-------------- next part --------------
--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple


More information about the Cygwin mailing list