X-Recipient: archive-cygwin AT delorie DOT com DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:message-id:date:from:mime-version:to:subject :references:in-reply-to:content-type; q=dns; s=default; b=BRZVXj Mi9V2j9WtYscvoamkeuAfZXxpudfK3s0k83SHONG+mq9ubL++lQIDMLJ4BrNkUDS oP8NAIvjsRiMUC+hzbwNYh8bI9e8j60zhHmluD8zycSHcnbdDbttb2XN4d5xO3lz mZ91/0lJm9Vs2rR7qiRlLsR8andbREltw03N4= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:message-id:date:from:mime-version:to:subject :references:in-reply-to:content-type; s=default; bh=6AM3WG/NJGEy +vxgwLG9Lr8shbs=; b=ymnX8rM3NAqhDVaNif92z5ceUt56MUe94klVWYqe9p/N Y0cgOrzraPdauAx3LLVFL/YrDI7TzXXm0o/Z80KBcISn4xGTRIRb2+VvSkhvbrbL 7nZFmP+OzH4EnV0AhtLLugq1b6w3lvRzmUfgDiCUgv0QUk2553iLlG94NkNyr38= Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.4 required=5.0 tests=AWL,BAYES_00,RP_MATCHES_RCVD autolearn=ham version=3.3.2 X-HELO: Ishtar.hs.tlinx.org Message-ID: <560366EE.5020207@tlinx.org> Date: Wed, 23 Sep 2015 19:58:54 -0700 From: Linda Walsh User-Agent: Thunderbird MIME-Version: 1.0 To: Greg Freemyer , "cygwin AT cygwin DOT com" Subject: Re: cygwin potentially corrupting permissions? References: In-Reply-To: Content-Type: multipart/mixed; boundary="------------020902000807040507070600" X-IsSubscribed: yes --------------020902000807040507070600 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Greg Freemyer wrote: > All, > > I've noticed on 2 different machines that if I copy (cp) a file I can > read with cygwin, I don't have permission to read the copy. --- What does the acl say? (Attached a script, lsacl, that I use -- it works with linux or cygwin and allows wildcards). --------------020902000807040507070600 Content-Type: text/plain; name="lsacl" Content-Transfer-Encoding: base64 Content-Disposition: inline; filename="lsacl" IyEvYmluL2Jhc2ggCgojIyAkSWQ6IGxzYWNsLHYgMS41IDIwMTUtMDgtMDIg MTA6Mjk6MjUtMDcgbGF3IEV4cCBsYXcgJAojIFZlcnNpb24gMiAtLSB0cnkg dG8gd29yayB3aXRoIGdldGZhY2wgb24gY3lnd2luCiMKCgpzaG9wdCAtcyBl eHBhbmRfYWxpYXNlcwphbGlhcyBpbnQ9ZGVjbGFyZVwgLWkJCXN1Yj1mdW5j dGlvbiAgc3RyaW5nPWRlY2xhcmUKCmdmYWNsPSQodHlwZSAtUCBnZXRmYWNs KQoKaWYgISB0eXBlIC1mIGN5Z3dpbiAyPi9kZXYvbnVsbCA7IHRoZW4KCV91 bl89JCh0eXBlIC1QIHVuYW1lKQoJaWYJCVtbICRfdW5fIF1dIDsgdGhlbiBf b3NfPSQoJF91bl8gLW8pOwoJZWxpZglbWyAtZSAvcHJvYy9zeXMva2VybmVs IF1dOyB0aGVuIF9vc189TGludXg7IAoJZWxzZQlfb3NfPUN5Z3dpbjsgCglm aQoJaWYJCVtbICRfb3NfID1+IEN5Z3dpbiBdXTsgdGhlbiBmdW5jdGlvbiBj eWd3aW4gKCkgeyByZXR1cm4gMDsgfQoJZWxzZQlmdW5jdGlvbiBjeWd3aW4g KCkgeyByZXR1cm4gMTsgfQoJZmkKCXVuc2V0IF91bl8gX29zXwoJZXhwb3J0 IC1mIGN5Z3dpbgpmaQoKaWYgY3lnd2luIDI+L2Rldi9udWxsIDt0aGVuIAoJ W1sgJGdmYWNsIF1dIHx8I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nRmICIlc1xuIiAiJHBlcm0iCn0KCgpmb3IgZm4gaW4gIiRA IjsgZG8KCWludCBtYXg9NDAKCXBlcm09JChhY2xfc3RyICIkZm4iKQoJaW50 IGxlbj0keyNwZXJtfQoJaWYgKChsZW4+X2FjbF9sZW5fKSk7IHRoZW4gYWNs bGVuPWxlbjsgZmkKCWlmICgoYWNsbGVuPm1heCkpOwkJdGhlbiBhY2xsZW49 bWF4OyBmaQoJcHJpbnRmICIlLSR7YWNsbGVufXMgJXNcbiIgIiRwZXJtIiAi JGZuIgpkb25lCg== --------------020902000807040507070600 Content-Type: text/plain; charset=us-ascii -- 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 --------------020902000807040507070600--