delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2019/12/26/16:06:24

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:date:from:reply-to:message-id:to:subject
:in-reply-to:references:mime-version:content-type
:content-transfer-encoding; q=dns; s=default; b=FyRfsY//y34t0Zwa
bwc/sH6JMYDscidqPNmHJRlsVhtYPbVF6Xj59TcGk+foGgVdo5/Dx4StakuAizeO
7KEwOWhvdlTHCXBgR+nMUUAIQPreeJjv9mGviZnd1i9U16QVajl3vVcHeUaYCGp2
zsZeY/PO/1NWaJVg3v7AktQgPxc=
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:date:from:reply-to:message-id:to:subject
:in-reply-to:references:mime-version:content-type
:content-transfer-encoding; s=default; bh=4cAgdjr4D3Mwu5e+C8osrm
hUhEw=; b=dA+8xRgPd3wmTurZNwQ2bsZ0LOB1HZzmHYt3BGAbrWx0oytqiL7tLo
3OHfyFqhhHc42m1bIfqnu3U9fa55BcV+xl+pujVnGvXeSAzJfBR6e0/xCcW6k4jQ
NHeBqQA+O1BwhwyVyzXlyUp74tahsNs+VmndpilPzqZndZtnu0bGs=
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-Spam-SWARE-Status: No, score=-5.7 required=5.0 tests=BAYES_00,FREEMAIL_FROM,GIT_PATCH_2,KAM_THEBAT,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=ham version=3.3.1 spammy=HAuthentication-Results:header.i, H*M:yandex, H*R:D*cygwin.com, Surprise
X-HELO: forward105p.mail.yandex.net
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yandex.ru; s=mail; t=1577394303; bh=zuADEe6iP1CYnB048ZGWdJqwnE9fm+pwdYiRjBduo2U=; h=In-Reply-To:Subject:To:Reply-To:From:Message-ID:References:Date; b=YBlrO9p6/Nu5ho8N1bEZOiUzSoP19KRwyUg9TClev1eIKtlpgEh+DR5m1EquAn4NI HNIuec6tMD4j4UCcpbbD3nixW2XFeweY4VQ93H9O0qUjTCat6jj+T11pNH5FRih63P xcfwHVW9CEjXO62MWfUJVaKazTSTXhC1pK0FBkfw=
Authentication-Results: mxback17g.mail.yandex.net; dkim=pass header.i=@yandex.ru
Date: Fri, 27 Dec 2019 00:00:10 +0300
From: Andrey Repin <anrdaemon AT yandex DOT ru>
Reply-To: cygwin AT cygwin DOT com
Message-ID: <73938188.20191227000010@yandex.ru>
To: Enrique Perez-Terron <enrique AT perezterron DOT net>, cygwin AT cygwin DOT com
Subject: Re: bash /cmd disagree about owner and permissions to executable
In-Reply-To: <f9c5b02d4ae85de26519e0a700c73cab@perezterron.net>
References: <f9c5b02d4ae85de26519e0a700c73cab AT perezterron DOT net>
MIME-Version: 1.0
X-IsSubscribed: yes
X-MIME-Autoconverted: from base64 to 8bit by delorie.com id xBQL5xg7010385

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 AT panter ~
>> $ python3 x.py
>> -bash: 
>> /cygdrive/c/Users/Heidi/AppData/Local/Microsoft/WindowsApps/python3: 
>> Permission denied

> Surprise!

> Investigating...

>> Heidi AT 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 AT 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 AT 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...
--
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