This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Cygwin "cp" changes ACLs on files accessed via CIFS


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

Attachment: cygcheck.out
Description: Binary data

--
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

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]