bash /cmd disagree about owner and permissions to executable

Andrey Repin anrdaemon@yandex.ru
Thu Dec 26 21:49:00 GMT 2019


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... ТÒÐÐ¥&ö&ÆVÒ&W÷'G3¢‡GG¢òö7–wv–âæ6öÒ÷&ö&ÆV×2æ‡FÖÀФd¢‡GG¢òö7–wv–âæ6öÒöfðФFö7VÖVçFF–ö㢇GG¢òö7–wv–âæ6öÒöFö72æ‡FÖÀÐ¥Vç7V'67&–&R–æfó¢‡GG¢òö7–wv–âæ6öÒöÖÂò7Vç7V'67&–&R×6–ׯPРÐ


More information about the Cygwin mailing list

AltStyle によって変換されたページ (->オリジナル) /