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:mime-version:in-reply-to:references:from:date :message-id:subject:to:content-type:content-transfer-encoding; q=dns; s=default; b=BUs5dJ6g7DnYWZUA/FAFKCZxGRe9uR1ZREdp8qkz94c OhDl6YH43TqrpTx02iJZ6zee3ehZX0xG73BR0Yie1Pi7+Vs0fGyjVPwfmT4jR6aA y1JUeq5ucEDndtIE5xYTnt+RrsjH68uBlNmpW/LQUwixei0qvuL8g+9xOqJbP0MA = 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:mime-version:in-reply-to:references:from:date :message-id:subject:to:content-type:content-transfer-encoding; s=default; bh=BriXS8oZrZWIFtvOaNpSYbU24Rs=; b=c0QhvIuek/9lxUrLV yGGD2HuFQ5vIOMxsVlc8VfHK+tuxjnpbYX7hH3PoMRoy7V/VvA1AmRVsIj727JG3 PxhCPnilrvLFCuY4/LpHrnHCZpnMvYNr7/Ndt2OdNV3ALzktQs3u3rNMSp8H/qgl 0YCe4n6ClnQB/qUuuPVMPox+Sw= Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , 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=-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 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 In-Reply-To: References: From: Lee Date: Thu, 26 Dec 2019 18:53:35 -0500 Message-ID: Subject: Re: bash /cmd disagree about owner and permissions to executable To: cygwin AT cygwin DOT com Content-Type: text/plain; charset="UTF-8" X-IsSubscribed: yes Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id xBQNsBSp028382 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 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)")" >> 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? 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=0,user 0 0 none /cygdrive cygdrive binary,posix=0,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