[python-win32] File access entries are incorrectly set

2016-09-19 Thread Goku Balu
If I deny GENERIC_WRITE it denies Rc as well (Rc - Read Control). I can't even open the folder in explorer. Here is the sample code. Is this a bug? import win32security,win32api,win32con import ntsecuritycon as con import os def show_cacls (filename): for line in os.popen ("Icacls %s" % filen

Re: [python-win32] File access entries are incorrectly set

2016-09-19 Thread Christopher Nilsson
Hi Goku, That doesn't seem like a bug to me. GENERIC_WRITE represents several permissions mashed together, including FILE_WRITE and read control. Perhaps try with just FILE_WRITE on its own? On Tue, 20 Sep 2016, 8:03 AM Goku Balu wrote: > If I deny GENERIC_WRITE it denies Rc as well (Rc - Read