[issue42046] Unable to write to file without elevated privileges

Eryk Sun report at bugs.python.org
Thu Oct 15 14:27:59 EDT 2020


Eryk Sun <eryksun at gmail.com> added the comment:

> Desktop rwx, 
> Username-directory rwx, 

POSIX permissions are not meaningful in Windows. Please run the following two commands in a Python script in order to show the current user and the access-control list on the directory:

    import subprocess
    subprocess.call('whoami.exe')
    subprocess.call(r'icacls.exe "C:\Users\Username\Desktop"')

----------
nosy: +eryksun

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue42046>
_______________________________________


More information about the Python-bugs-list mailing list