public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
From: Andrey Repin <anrdaemon@yandex.ru>
To: Enrique Perez-Terron <enrique@perezterron.net>, cygwin@cygwin.com
Subject: Re: bash /cmd disagree about owner and permissions to executable
Date: Thu, 26 Dec 2019 21:49:00 -0000	[thread overview]
Message-ID: <73938188.20191227000010@yandex.ru> (raw)
In-Reply-To: <f9c5b02d4ae85de26519e0a700c73cab@perezterron.net>

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain; charset=utf-8, Size: 2395 bytes --]

Greetings, Enrique Perez-Terron!

> I prefer to have a single installation of python, rather than having to 
> remember to install packages for various pythons.
> I choose the standard windows 64-bit install of python 3.8
> But today when I tried to run a script ...

>> Heidi@panter ~
>> $ python3 x.py
>> -bash: 
>> /cygdrive/c/Users/Heidi/AppData/Local/Microsoft/WindowsApps/python3: 
>> Permission denied

> Surprise!

> Investigating...

>> Heidi@panter ~
>> $ ls -ld "$(type -p python3)"
>> -rwxr-x--- 1 Unknown+User Unknown+Group 0 des 26 19:25 
>> /cygdrive/c/Users/Heidi/AppData/Local/Microsoft/WindowsApps/python3*
>> 
>> Heidi@panter ~
>> $ cmd /C "icacls $(cygpath -w "$(type -p python3)")"

No need to "cmd /c"

>> C:\Users\Heidi\AppData\Local\Microsoft\WindowsApps\python3.exe 
>> NT-MYNDIGHET\SYSTEM:(I)(F)
>>                                                                
>> BUILTIN\Administratorer:(I)(F)
>>                                                                
>> PANTER\Heidi:(I)(F)
>>                                                                
>> S-1-19-512-4096:(RX,D,WDAC,WO,WA)
>> 
>> Successfully processed 1 files; Failed processing 0 files
>> 
>> Heidi@panter ~
>> $ cmd /C "dir /q $(cygpath -w "$(type -p python3)")"
>>  Volume in drive C is Acer
>>  Volume Serial Number is 3A2C-1A76
>> 
>>  Directory of C:\Users\Heidi\AppData\Local\Microsoft\WindowsApps
>> 
>> 26.12.2019  19.25                 0 PANTER\Heidi           python3.exe
>>                1 File(s)              0 bytes
>>                0 Dir(s)  155â–’760â–’214â–’016 bytes free


> Hey, what is this? Windows reports that the owner of the binary is 
> PANTER\Heidi, but /bin/ls reports Unknown+User?

> I rebboted, unistalled python and installed the app store version of 
> python instead, but nothing changed.

> Any suggestions?

Problem reports:       http://cygwin.com/problems.html

In particular, show "mount" output and check that you don't have
/etc/{passwd,group} files


-- 
With best regards,
Andrey Repin
Thursday, December 26, 2019 23:57:30

Sorry for my terrible english...\0ТÒÐÐ¥\a&ö&ÆVÒ\a&W\x06÷'G3¢\x02\x02\x02\x02\x02\x02\x06‡GG\x03¢òö7–wv–âæ6öÒ÷\a&ö&ÆV×2æ‡FÖÀФd\x15\x13¢\x02\x02\x02\x02\x02\x02\x02\x02\x02\x02\x02\x02\x02\x02\x02\x02\x02\x02\x06‡GG\x03¢òö7–wv–âæ6öÒöf\x17\x12ðФFö7VÖVçF\x17F–öã¢\x02\x02\x02\x02\x02\x02\x02\x02\x06‡GG\x03¢òö7–wv–âæ6öÒöFö72æ‡FÖÀÐ¥Vç7V'67&–&R\x06–æfó¢\x02\x02\x02\x02\x02\x06‡GG\x03¢òö7–wv–âæ6öÒöÖÂò7Vç7V'67&–&R×6–×\x06ÆPРÐ

  reply	other threads:[~2019-12-26 21:05 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-12-26 21:05 Enrique Perez-Terron
2019-12-26 21:49 ` Andrey Repin [this message]
2019-12-30  3:37   ` Enrique Perez-Terron
2019-12-30 23:10     ` Brian Inglis
2020-01-06 17:01       ` Ubuntu
2019-12-27  4:51 ` Lee

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=73938188.20191227000010@yandex.ru \
    --to=anrdaemon@yandex.ru \
    --cc=cygwin@cygwin.com \
    --cc=enrique@perezterron.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).