delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2013/10/09/18:27:38

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:reply-to:mime-version:to
:subject:references:in-reply-to:content-type
:content-transfer-encoding; q=dns; s=default; b=n9wBlORafFenQrG+
Rdt8C9WWL5JYd/preYxuZgZift8ZnqqiqPKus4mBiRqIj5/5bNAouj/qZQyn+mag
0bvNoqNbfTEbsqTD/8jOvlPlAGNnj6JqILIlTTShqaAyYMEnBzqbe2Mk1JgWP4I0
s7Vrpoho0Tf5wDpruXN9aObv22g=
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:reply-to:mime-version:to
:subject:references:in-reply-to:content-type
:content-transfer-encoding; s=default; bh=dfN86Y5ShwkDssvPtdt36r
SjpZ8=; b=nQVO8WnVHqdDBooEHCFT9wNpN1rV6aOnmBfCVcgWayxY79x+DHlv80
/RGfyayjP2KCJVSoXP6BcdM18iA4TUJ9yiGX8l8Snqz5WOIju+m2Htg4iGm1+ylH
6NOBmnjsXBFTUTS/PylgLhH1A6S6O1nYn7/7UlJrXP9cJyJy0wr3Y=
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
Authentication-Results: sourceware.org; auth=none
X-Virus-Found: No
X-Spam-SWARE-Status: No, score=-1.7 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.2
X-HELO: vms173001pub.verizon.net
Message-id: <5255D834.7020204@cygwin.com>
Date: Wed, 09 Oct 2013 18:27:00 -0400
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:24.0) Gecko/20100101 Thunderbird/24.0
MIME-version: 1.0
To: cygwin AT cygwin DOT com
Subject: Re: cp creates unreadable file on Windows 7
References: <8FEF00DDD6C58843BF4ED3C1DCF80E9F6421A227 AT FMSMSX106 DOT amr DOT corp DOT intel DOT com>
In-reply-to: <8FEF00DDD6C58843BF4ED3C1DCF80E9F6421A227@FMSMSX106.amr.corp.intel.com>

On 10/9/2013 5:30 PM, Frank, Matthew I wrote:
> I believe my problem is identical to the one reported in:
> http://cygwin.com/ml/cygwin/2012-02/msg00456.html, but that message chain ended with
> "mount your file system noacl" which isn't an option for me, so I'm looking for
> other alternatives.
>
> I create a file using cmd.exe in a directory created by cmd.exe.  Then in Cygwin bash I
> mkdir a directory (two levels deep) and cp the file into the new directory.  The resulting
> file is not readable by any Windows or Cygwin executable.  I can't say whether this is
> correct or not, but it surprised me.
>
> I am on a corporate network (logged in using network credentials).  The filesystem is NTFS,
> the machine is Windows 7.  I am an Administrator on the machine.  I am using the new 64-bit
> Cygwin installed in c:\users\mifrank\cygwin64, but the problem was originally reported by
> several of my users, and they are using slightly older 32-bit versions of Cygwin installed
> in c:\cygwin.
>
> Reproducer.  Step 1 (must be done in a cmd.exe shell.)
>
> 	C:\>md dos-level1
> 	C:\>echo foo > dos-level1\bar
> 	C:\>cat dos-level1\bar
> 	foo
> 	C:\>icacls.exe dos-level1\
> 	dos-level1\ BUILTIN\Administrators:(I)(F)
>              BUILTIN\Administrators:(I)(OI)(CI)(IO)(F)
>              NT AUTHORITY\SYSTEM:(I)(F)
>              NT AUTHORITY\SYSTEM:(I)(OI)(CI)(IO)(F)
>              BUILTIN\Users:(I)(OI)(CI)(RX)
>              NT AUTHORITY\Authenticated Users:(I)(M)
>              NT AUTHORITY\Authenticated Users:(I)(OI)(CI)(IO)(M)
>
> 	Successfully processed 1 files; Failed processing 0 files
> 	C:\>icacls.exe dos-level1\bar
> 	dos-level1\bar BUILTIN\Administrators:(I)(F)
>                 NT AUTHORITY\SYSTEM:(I)(F)
>             	   BUILTIN\Users:(I)(RX)
>                 NT AUTHORITY\Authenticated Users:(I)(M)
>
> 	Successfully processed 1 files; Failed processing 0 files
>
> Step 2 (from Cygwin bash shell)
>
> 	$ cygcheck -V
> 	cygcheck (cygwin) 1.7.25
> 	$ cd /cygdrive/c/
> 	$ groups
> 	Domain Users Users
> 	$ umask
> 	0022
> 	$ mkdir --parents cyg-level1/cyg-level2
> 	$ cat dos-level1/bar
> 	foo
> 	$ cp dos-level1/bar cyg-level1/cyg-level2/
> 	$ cat cyg-level1/cyg-level2/bar
> 	cat: cyg-level1/cyg-level2/bar: Permission denied
>
> 	$ icacls.exe cyg-level1/cyg-level2/
> 	cyg-level1/cyg-level2/ AMR\mifrank:(F)
>                         AMR\Domain Users:(RX)
>                         Everyone:(RX)
>                         BUILTIN\Administrators:(F)
>                         NT AUTHORITY\SYSTEM:(F)
>                         BUILTIN\Users:(RX)
>                         NT AUTHORITY\Authenticated Users:(M)
>                         CREATOR OWNER:(OI)(CI)(IO)(F)
>                         CREATOR GROUP:(OI)(CI)(IO)(RX)
>                         Everyone:(OI)(CI)(IO)(RX)
>
> 	Successfully processed 1 files; Failed processing 0 files
> 	$ icacls.exe cyg-level1/cyg-level2/bar
> 	cyg-level1/cyg-level2/bar AMR\mifrank:(D,Rc,WDAC,WO,RA,WA)
>                            AMR\Domain Users:(Rc,S,RA)
>                            Everyone:(Rc,S,RA)
>
> 	Successfully processed 1 files; Failed processing 0 files
>
> On the other hand:
>
> 	$ echo fromcyg > cyg-level1/cyg-level2/baz
> 	$ cat cyg-level1/cyg-level2/baz
> 	fromcyg
> 	$ icacls.exe cyg-level1/cyg-level2/baz
> 	cyg-level1/cyg-level2/baz AMR\mifrank:(R,W,D,WDAC,WO)
>                            AMR\Domain Users:(R)
>                            Everyone:(R)
>
> 	Successfully processed 1 files; Failed processing 0 files

'bar' isn't owned by mifrank, Domain Users, or Everyone in its initial 
location so the POSIX permissions for it don't include read access for
any of the POSIX attributes (-rwxrwxrwx).  Try adding read permissions
for mifrank to the file and/or directories and see if that helps.


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