[OpenIndiana-discuss] Cygwin "cp" from Windows client does not preserve permissions

Bob Friesenhahn bfriesen at simple.dallas.tx.us
Wed Jun 24 17:17:08 UTC 2015


On Wed, 24 Jun 2015, Andrew Martin wrote:
>
> I wasn't able to find any documentation on Cygwin extensions to deal
> with ACLs - did you have a particular utility in mind for this?

I suggest reading the Cygwin user guide at 
"https://cygwin.com/cygwin-ug-net/cygwin-ug-net.html".  ACLs are 
addressed there.  Besides the discussions of how Cygwin emulates Unix 
behavior, there is documentation for getfacl and setfacl.

> I would expect that the normal behavior of cp would be as you said that
> it would not preserve permissions, and thus the new files in this
> subdirectory would be assigned the inherited ACLs - correct? This didn't

Normally cp should give copied files the user's current UID/GID and 
file permissions according to the current 'umask'.  For Cygwin, this 
would mean creating an ACL which emulates POSIX behavior.

Bob
-- 
Bob Friesenhahn
bfriesen at simple.dallas.tx.us, http://www.simplesystems.org/users/bfriesen/
GraphicsMagick Maintainer,    http://www.GraphicsMagick.org/



More information about the openindiana-discuss mailing list