NTFS permissions

Tim Howarth tim at worthy.demon.co.uk
Tue Apr 24 02:41:27 EDT 2001


In message <3AE4BAB0.3090204 at ActiveState.com>
          Mark Hammond <MarkH at ActiveState.com> wrote:

> Tim Howarth wrote:
> 
> > My problem with directories not accepting security descriptors was
> > not quite correct.

> > So next problem how do I turn them on programmatically ?
>
> 
> It appears the win32 extensions lack this capability.

Thanks, again, nice to know it's not me !

I guess I'll have to stick to cacls.exe for now.

(Except, that echoes output to my user creator web page, need to sort
that out....change stdout whilst calling cacls ?)

> My MSDN CD has an article "HOWTO: Set Security on a NTFS Folder
> Programmatically" that shows exactly what you want (although in VB code!).

Yes, that's probably what I found when trying to work out how to do this
- VB being more readable to me than similar things in C.

> It would be cool to add this support, and not _too_ much work - I would
> be happy to help, but don't have the time to do it all right now...

Is there any way to do a generalised API call with win32 ? (Staying in
Python, I've no/very little knowledge C-wise and certainly none about
compiling win32 from sources.)

 
-- 
___
 |im    ---- ARM Powered ----



More information about the Python-list mailing list