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

Bob Friesenhahn bfriesen at simple.dallas.tx.us
Tue Jun 23 23:06:47 UTC 2015


On Tue, 23 Jun 2015, Andrew Martin wrote:
>
>> 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

Without considering any of the other Windows/ACL-specific details, it 
is worth pointing out that 'cp' does not preserve permissions by 
default (including on pure Unix).  It is necessary to use 'cp -p' to 
preserve permisions (mode, ownership, timestamps).  There are likely 
GNU/Cygwin extensions to deal with ACLs.

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