delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2012/02/24/13:38:03

X-Recipient: archive-cygwin AT delorie DOT com
X-SWARE-Spam-Status: No, hits=3.5 required=5.0 tests=AWL,BAYES_00,BOTNET,RCVD_IN_DNSWL_NONE
X-Spam-Check-By: sourceware.org
Message-id: <4F47D8E6.6030608@cygwin.com>
Date: Fri, 24 Feb 2012 13:37:26 -0500
From: "Larry Hall (Cygwin)" <reply-to-list-only-lh AT cygwin DOT com>
Reply-to: cygwin AT cygwin DOT com
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:10.0.2) Gecko/20120216 Thunderbird/10.0.2
MIME-version: 1.0
To: cygwin AT cygwin DOT com
Subject: Re: recursive read-only folder copy issue
References: <CAA5y1-CBz67HMO8+ccgZQVwUtGAnq0fFMMxCTQoiqjbGTySB-A AT mail DOT gmail DOT com>
In-reply-to: <CAA5y1-CBz67HMO8+ccgZQVwUtGAnq0fFMMxCTQoiqjbGTySB-A@mail.gmail.com>
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com

On 2/24/2012 11:03 AM, Yohann Martineau wrote:
> hello,
>
> sorry if this question has already been asked one thousand times, if
> it's the case, google, the faq and the mailing list search engine
> missed it.
>
> If I create the following tree in windows explorer:
>
> dir1
>    dir2
>      file1
>    file2
>
> Right-click on dir1 in windows explorer, uncheck grayed read-only and
> check-in read-only, apply on all subfolders and files.
>
> Open cygwin bash, type the following command line:
>
>    cp -r dir1 dir1-1
>
> In windows explorer, a new dir1-1 folder is created as expected, it is
> possible to open this folder.
>
> Try to open file2 in windows explorer, error "access denied". It's the
> same with dir2 folder, "folder not available, access denied".
>
> If I try to delete folder dir1-1 (using shift+del), file2 is removed
> but I have an error "cannot remove folder dir2, this folder is not
> empty.
>
> Sorry if this behavior is expected.
>
> I managed to delete this directory running chmod 755 -R dir1-1 in
> cygwin shell. In this case, I can open folder dir1-1/dir2 and see that
> file2 is still there. Then I can remove this dir1-1 folder from
> windows explorer.
>
> For your information, I stumbled upon this problem copying a directory
> from a clearcase dynamic view mounted as a network drive. I performed
> a plain vanilla test with the detailed description below.

You could try mounting the drive where you're seeing this behavior
with the "noacl" flag if you want to mix and match Windows and Cygwin
tools when you're working with files.  See the Users Guide for more
information about mount flags.

-- 
Larry

_____________________________________________________________________

A: Yes.
 > Q: Are you sure?
 >> A: Because it reverses the logical flow of conversation.
 >>> Q: Why is top posting annoying in email?

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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019