public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
* cygwin potentially corrupting permissions?
@ 2015-09-23 22:58 Greg Freemyer
  2015-09-24  2:59 ` Linda Walsh
  0 siblings, 1 reply; 18+ messages in thread
From: Greg Freemyer @ 2015-09-23 22:58 UTC (permalink / raw)
  To: cygwin

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

^ permalink raw reply	[flat|nested] 18+ messages in thread

end of thread, other threads:[~2015-09-25  8:48 UTC | newest]

Thread overview: 18+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-09-23 22:58 cygwin potentially corrupting permissions? Greg Freemyer
2015-09-24  2:59 ` Linda Walsh
2015-09-24 16:13   ` Greg Freemyer
2015-09-24 18:06     ` Linda Walsh
2015-09-24 18:53       ` Greg Freemyer
2015-09-24 19:22         ` Ken Brown
2015-09-25  2:39           ` Greg Freemyer
2015-09-24 19:28         ` Linda Walsh
2015-09-25  2:18           ` Greg Freemyer
2015-09-25  3:06             ` Linda Walsh
2015-09-24 18:50     ` Andrey Repin
2015-09-24 19:26       ` Linda Walsh
2015-09-25  1:50         ` Andrey Repin
2015-09-25  2:45           ` Greg Freemyer
2015-09-25  2:56           ` Linda Walsh
2015-09-25  8:35             ` Andrey Repin
2015-09-25  8:48               ` Linda Walsh
2015-09-25  2:31       ` Greg Freemyer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).