delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2016/04/14/05:12:21

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:subject:to:references:from:message-id:date
:mime-version:in-reply-to:content-type
:content-transfer-encoding; q=dns; s=default; b=Yd45Nh5cUnKT0eJA
zlVuFtK9MB0q1uKkX5zfN/h8MdZV9MNexpjQ7+huXTMyyN0062aCeCWipAOWDpNv
Vr4SQGFF4obY2HXNFqeSdX5GDzLiBEXLBZZxAlFcV4V+Y6UN7s0PrhYVnZLGoNA5
bIErht2I53SUra8fQ9GnnOPw9Lc=
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:subject:to:references:from:message-id:date
:mime-version:in-reply-to:content-type
:content-transfer-encoding; s=default; bh=ss00437MIj+FPJm0QvJTkI
1bnY8=; b=PCXU8pabiTofuWoqohIWgE3NQR3slsk+CRpAIWl/xsqWIQZLDpYwkU
va/38W2tu9syT4p19nPYn3OMoJdL293YC26vzv7VyESgeUrul38sLU+RabCtj11l
E0FRpvRIkH720SiEN2KarQCF2edmZuRvgg8wmK8uC+kG8THtJZuXI=
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=-0.7 required=5.0 tests=BAYES_40,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=ham version=3.3.2 spammy=H*f:sk:a-PJt7J, H*i:Fg1xY, H*f:Fg1xY, H*MI:sk:a-PJt7J
X-HELO: forward16m.cmail.yandex.net
Authentication-Results: smtp2m.mail.yandex.net; dkim=pass header.i=@yandex.ru
X-Yandex-ForeignMX: US
X-Yandex-Suid-Status: 1 0
Subject: Re: Conflict between Cygwin 1.7 and Ubuntu for Windows 14316
To: cygwin AT cygwin DOT com
References: <20160413052257 DOT GB28803 AT mercury DOT ccil DOT org> <CA+Fg1xY46ANusM1MeZozkQ1u0+AHwd=vJDoWo7867az3wxPNBQ AT mail DOT gmail DOT com> <CACmJb3yHO_VhiDoyn33d+7R_rq8Bqco6VMuTdG622Bu2u52fHA AT mail DOT gmail DOT com> <20160413131128 DOT GA3162 AT mercury DOT ccil DOT org> <570E4B45 DOT 7000201 AT cs DOT umass DOT edu> <20160413154351 DOT GF32092 AT mercury DOT ccil DOT org> <CA+Fg1xY+a-PJt7JNawvcWCqOz6GPz1PnivxzQbH4ntzXeMjhyQ AT mail DOT gmail DOT com>
From: Evgeny Grin <k2k AT yandex DOT ru>
Openpgp: id=289FE99E138CF6D473A3F0CFBF7AC4A5EAC2BAF4
Message-ID: <570F5ECC.3060409@yandex.ru>
Date: Thu, 14 Apr 2016 12:11:40 +0300
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:38.0) Gecko/20100101 Thunderbird/38.7.2
MIME-Version: 1.0
In-Reply-To: <CA+Fg1xY+a-PJt7JNawvcWCqOz6GPz1PnivxzQbH4ntzXeMjhyQ@mail.gmail.com>
X-IsSubscribed: yes

I can reproduce the problem.
Win10 Enterprise Build 14316 Insider Preview
Commands:
On cmd:
@ echo test1>cmd-file

On Cygwin sh:
$ echo test2>cygsh-file

On UoW bash sh:
# echo test3>uowsh-file
# cat cmd-file
test1
# cat cygsh-file
cat: cygsh-file: Permission denied
# cat uowsh-file
test3
# ls -alip
total 24
 562949953652128 drwxrwxrwx 2 root root    0 Apr 14 08:35 ./
 562949953523895 drwxrwxrwx 2 root root    0 Apr 14 08:27 ../
 281474976958606 -rwxrwxrwx 1 root root 1494 Apr 14 08:27 .bash_profile
 281474976958605 -rwxrwxrwx 1 root root 6054 Apr 14 08:27 .bashrc
3659174697238797 -rwxrwxrwx 1 root root    7 Apr 14 08:31 cmd-file
1125899907090593 -rwxrwxrwx 1 root root    6 Apr 14 08:38 cygsh-file
 281474976958608 -rwxrwxrwx 1 root root 1919 Apr 14 08:27 .inputrc
 281474976958609 -rwxrwxrwx 1 root root 1236 Apr 14 08:27 .profile
1688849860368294 -rwxrwxrwx 1 root root    6 Apr 14 08:35 uowsh-file

Back to cmd:
@ icacls cmd-file
cmd-file DESKTOP-5PNH8IH\Karlson:(RX)
         DESKTOP-5PNH8IH\Karlson:(I)(F)
         Everyone:(I)(RX)

@ icacls cygsh-file
cygsh-file DESKTOP-5PNH8IH\Karlson:(R,W,D,WDAC,WO)
           DESKTOP-5PNH8IH\Karlson:(R)
           Everyone:(R)

@ icacls uowsh-file
uowsh-file DESKTOP-5PNH8IH\Karlson:(RX)
           DESKTOP-5PNH8IH\Karlson:(I)(F)
           Everyone:(I)(RX)

@ more cmd-file
test1
@ more cygsh-file
test2
@ more uowsh-file
test3
@ dir
 Volume in drive C has no label.
 Volume Serial Number is 0A3F-B4C2

 Directory of C:\cygwin64\home\Karlson

14.04.2016  11:35    <DIR>          .
14.04.2016  11:35    <DIR>          ..
14.04.2016  11:27             6 054 .bashrc
14.04.2016  11:27             1 494 .bash_profile
14.04.2016  11:27             1 919 .inputrc
14.04.2016  11:27             1 236 .profile
14.04.2016  11:31                 7 cmd-file
14.04.2016  11:38                 6 cygsh-file
14.04.2016  11:35                 6 uowsh-file
               7 File(s)         10 722 bytes
               2 Dir(s)  103 532 670 976 bytes free

On Cygwin sh:
$ cat cmd-file
test1

$ cat cygsh-file
test2

$ cat uowsh-file
test3

$ ls -alip
total 27
 562949953652128 drwxr-xr-x+ 1 Karlson Karlson    0 Apr 14 11:35 ./
 562949953523895 drwxrwxrwt+ 1 Karlson Karlson    0 Apr 14 11:27 ../
 281474976958606 -rwxr-xr-x  1 Karlson Karlson 1494 Apr 14 11:27
.bash_profile
 281474976958605 -rwxr-xr-x  1 Karlson Karlson 6054 Apr 14 11:27 .bashrc
 281474976958608 -rwxr-xr-x  1 Karlson Karlson 1919 Apr 14 11:27 .inputrc
 281474976958609 -rwxr-xr-x  1 Karlson Karlson 1236 Apr 14 11:27 .profile
3659174697238797 -rwxr-xr-x  1 Karlson Karlson    7 Apr 14 11:31 cmd-file
1125899907090593 -rw-r--r--  1 Karlson Karlson    6 Apr 14 11:38 cygsh-file
1688849860368294 -rwxr-xr-x  1 Karlson Karlson    6 Apr 14 11:35 uowsh-file


Permissions are definitely different for file created in Cygwin.

-- 
Best Wishes,
Evgeny Grin


On 13.04.2016 19:21, Gerrit Haase wrote:
> 2016-04-13 17:43 GMT+02:00 John Cowan writes:
>> The exact contents aren't the point.  The point is that file1, created
>> under Cygwin, is not readable by UoW (or writable either), whereas file2,
>> created by very similar methods under Win32 proper, is readable and
>> writable by UoW.
> 
> Seems to be a permission issue, can you provide the output of:
> 
> icacls file1
> icacls file2
> 
> please?
> 
> ;)
> Gerrit
> 
> --
> 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
> 

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