This is the mail archive of the
cygwin
mailing list for the Cygwin project.
Re: Cygwin "cp" changes ACLs on files accessed via CIFS
- From: Andrew Martin <amartin at xes-inc dot com>
- To: cygwin at cygwin dot com
- Date: Tue, 14 Jul 2015 10:20:19 -0500 (CDT)
- Subject: Re: Cygwin "cp" changes ACLs on files accessed via CIFS
- Authentication-results: sourceware.org; auth=none
- References: <1371472352 dot 387936 dot 1435165195932 dot JavaMail dot zimbra at xes-inc dot com> <1348820798 dot 402815 dot 1435165875510 dot JavaMail dot zimbra at xes-inc dot com> <409737149 dot 20150625045255 at yandex dot ru>
----- Original Message -----
> From: "Andrey Repin" <anrdaemon@yandex.ru>
> To: "Andrew Martin" <amartin@xes-inc.com>, cygwin@cygwin.com
> Sent: Wednesday, June 24, 2015 8:52:55 PM
> Subject: Re: Cygwin "cp" changes ACLs on files accessed via CIFS
>
> Greetings, Andrew Martin!
>
> > 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.
>
> If you're not using Cygwin's 'noacl' mount flag for your NFS's, this is to be
> expected.
> You can force that flag for all directories outside Cygwin root by
> /etc/fstab:
>
> none /cygdrive cygdrive noacl,binary,posix=0 0 0
>
>
Hi Andrey,
Thanks for this helpful response - I added noacl to /etc/fstab and now cygwin's
"cp" is working as expected on the share!
Thanks again,
Andrew
--
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