From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 23873 invoked by alias); 26 Dec 2019 23:53:40 -0000 Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com Received: (qmail 23866 invoked by uid 89); 26 Dec 2019 23:53:39 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-3.3 required=5.0 tests=AWL,BAYES_00,FREEMAIL_ENVFROM_END_DIGIT,FREEMAIL_FROM,GIT_PATCH_2,RCVD_IN_DNSWL_NONE,SPF_PASS autolearn=ham version=3.3.1 spammy=lee, Lee X-HELO: mail-qt1-f181.google.com Received: from mail-qt1-f181.google.com (HELO mail-qt1-f181.google.com) (209.85.160.181) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Thu, 26 Dec 2019 23:53:38 +0000 Received: by mail-qt1-f181.google.com with SMTP id t3so23375356qtr.11 for ; Thu, 26 Dec 2019 15:53:37 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-transfer-encoding; bh=/2lhYhlQn+T2zV91qUdy95xgbrMHaR66aqGL9X1H7Fc=; b=EiuhpKjcHlU6hnbDBnWsiX8eSoFb6gWPtWpB5PJ47mM0QZvXH4gZmspt3xPdOIw1sF PvMNLvTMrVQl3C2M0vf3Tz87Jnn5Sg1+YkKfdUG0oCAxaU+eNCUI/mx8QwlBT/H91RWt P5QpKpBkGBu6+hp1o9PCDsngtVMTcrkDL2ap9RWqIy15o2vkDJD/Zy7mflRktuyA6KEM 8qb8BF7FaIPnlT8Xs1IrmRU2vdF/35KW28kc4wkJpkCjJtd3zu0ZR0NzdFR2p8KwQ0aL 7q/oX9Bjt9w9+9RnBmLunttU1VXBMdfIyFaHzTJfcDQaihahG7QxHa2exPyZHueRtCBJ fZfw== MIME-Version: 1.0 Received: by 2002:a0c:e38f:0:0:0:0:0 with HTTP; Thu, 26 Dec 2019 15:53:35 -0800 (PST) In-Reply-To: References: From: Lee Date: Fri, 27 Dec 2019 04:51:00 -0000 Message-ID: Subject: Re: bash /cmd disagree about owner and permissions to executable To: cygwin@cygwin.com Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-IsSubscribed: yes X-SW-Source: 2019-12/txt/msg00284.txt.bz2 On 12/26/19, Enrique Perez-Terron wrote: > 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)")" >> 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=E2=96=92760=E2=96=92214=E2=96=92016 bytes f= ree > > > 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? Take a look at https://cygwin.com/cygwin-ug-net/using.html#mount-table and try changing /etc/fstab # This is the default: # none /cygdrive cygdrive binary,posix=3D0,user 0 0 none /cygdrive cygdrive binary,posix=3D0,user,noacl,exec 0 0 altho with cygwin saying 'Unknown+User Unknown+Group' I don't know if that will be enough :( Somebody else will have to help you with > Windows reports that the owner of the binary is > PANTER\Heidi, but /bin/ls reports Unknown+User? Regards, Lee -- 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