This is the mail archive of the
cygwin
mailing list for the Cygwin project.
Re: Conflict between Cygwin 1.7 and Ubuntu for Windows 14316
- From: Evgeny Grin <k2k at yandex dot ru>
- To: cygwin at cygwin dot com
- Date: Thu, 14 Apr 2016 12:11:40 +0300
- Subject: Re: Conflict between Cygwin 1.7 and Ubuntu for Windows 14316
- Authentication-results: sourceware.org; auth=none
- Authentication-results: smtp2m.mail.yandex.net; dkim=pass header dot i= at yandex dot ru
- Openpgp: id=289FE99E138CF6D473A3F0CFBF7AC4A5EAC2BAF4
- 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>
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