X-Recipient: archive-cygwin@delorie.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:mime-version:from:date:message-id:subject:to
	:content-type; q=dns; s=default; b=APMq+9iWbkIdaIx9f66dFVGN9jxtm
	xL7qp8qcbjUW/3YvPrz1l9Y+6Xpzl5DOPs/ztAMSVgOcT5BiI4pUe0xRC/BjVPLm
	BMKK5f/GudrHnCRwLB17c8J/SMIv/9EMztzKQkjZRQ97rB3/pWp2NgkBm5t2AjfV
	1LPldR/fXWRXOg=
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:mime-version:from:date:message-id:subject:to
	:content-type; s=default; bh=1LOyh408R53+2YmTqNgtrXNEVIc=; b=Fcv
	oRimQK5LNCwFJrIfg2/doRDABlDG5amLaegGkAFQY4tdDGVoZBohfAYOPRWEeSMN
	9ctL86Aw8V7UmtuUKK+NFpgLQJXfSqSYDHYtZ/fM0PREC089PZAnvHST/qDcnI/y
	pl+K/3nu+8Ic4N89CZsbec87lmLX3s5V7Dl4MtUs=
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com
Authentication-Results: sourceware.org; auth=none
X-Virus-Found: No
X-Spam-SWARE-Status: No, score=1.8 required=5.0 tests=AWL,BAYES_40,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=ham version=3.3.2
X-HELO: mail-la0-f53.google.com
X-Received: by 10.152.28.9 with SMTP id x9mr12551799lag.73.1443049123755; Wed, 23 Sep 2015 15:58:43 -0700 (PDT)
MIME-Version: 1.0
From: Greg Freemyer <greg.freemyer@gmail.com>
Date: Wed, 23 Sep 2015 18:58:04 -0400
Message-ID: <CAGpXXZKUQtAbrQ80VDHZhy0aZtzG+5fDB7bcYz-kwQ3Kgx6ueQ@mail.gmail.com>
Subject: cygwin potentially corrupting permissions?
To: cygwin@cygwin.com
Content-Type: text/plain; charset=UTF-8
X-IsSubscribed: yes

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.

I don't recall that happening in that past.  If this was Linux I would
feel comfortable looking at umask, etc. to figure out what is going
on.  With cygwin I'm at a loss.

If someone can tell me what I have configured wrong, I'd really appreciate it.

fyi: I have a very vanilla install of cygwin on both machines.  I've
been using cygwin for many years and never noticed this before.  It
maybe an issue unique to Excel.

Here's a scenario I just went through:

1) Use Excel (2010 or 2013) to create a simple 2 column, 3 row table
and use "Save As" to save it as a CSV file name "Book1.csv"

2) verify it can be read via cygwin

$ cat Book1.csv
field1,field2
1,2
3,4

3) use cp to make a copy

cp Book1.csv fail.csv

4) try to read the copy and fail
$ cat fail.csv
cat: fail.csv: Permission denied

5) Verify the owner / UID / perms are the same

$ ls -l Book1.csv fail.csv
----rwx---+ 1 GAF None 25 Sep 23 18:45 Book1.csv
----rwx---+ 1 GAF None 25 Sep 23 18:46 fail.csv

$ ls -ln Book1.csv fail.csv
----rwx---+ 1 1006 513 25 Sep 23 18:45 Book1.csv
----rwx---+ 1 1006 513 25 Sep 23 18:46 fail.csv

They are, but there are extended attributes hiding behind the + sign.

6) Force the permissions and test again
$ chmod +rw fail.csv

$ cat fail.csv
field1,field2
1,2
3,4

======================

Bewildered,
Greg
--
Greg Freemyer
www.IntelligentAvatar.net

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

