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

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=lO7qtCoNJPjkH44J
ST4r7kUTrJR+yeoOU2Dta61/5jTUfe3ljMQ1snLyNYWhL7/TSyCmrhAyQzSSo6ks
8BBAlDVaq7McevE4ya+uZYwRmi9VmIicz52NJDldmuIHPSqYO3CU8S5WeBrLlQ06
RXMHwNpTRIqlUa+r5gJfE55Vab8=
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=AbbfOjubtRZwrwYvxRQXu4
pjv+0=; b=T/gHbq89vQiNrup7i4vRs1ufSmKit0mCGcDoHzFJ8kjy5Cid7d3CFt
V5dTIDWaw58wQ7Pv3dMtH435PjM7P2UAZ3GiwSxupy53zRKktfuvw+lMcC2H5CoG
48NuxzTvmx5fjh6XNr5IkFjueET3Kt0y3iI/fEmntNn2GvrnJTFrc=
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=-2.6 required=5.0 tests=BAYES_00,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=ham version=3.3.2 spammy=H*MI:sk:570F5EC, H*i:sk:570F5EC, H*f:sk:570F5EC, preview
X-HELO: forward19j.cmail.yandex.net
Authentication-Results: smtp11.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> <570F5ECC DOT 3060409 AT yandex DOT ru>
From: Evgeny Grin <k2k AT yandex DOT ru>
Openpgp: id=289FE99E138CF6D473A3F0CFBF7AC4A5EAC2BAF4
Message-ID: <570F644E.4060700@yandex.ru>
Date: Thu, 14 Apr 2016 12:35:10 +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: <570F5ECC.3060409@yandex.ru>
X-IsSubscribed: yes

Need to add that I'm using latest Cygwin64:
$ uname -r
2.5.0(0.297/5/3)


On 14.04.2016 12:11, Evgeny Grin wrote:
> 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

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