Matthew Howle wrote: > The permissions are applied to the directory but subdirectories and > files within the directory aren't inheriting the permissions.
You've stumbled across a very nasty little dark corner. There are several APIs for managing security descriptors, including APIs like SetFileSecurity, SetSecurityInfo, and SetNamedSecurityInfo. You happened to choose SetFileSecurity. It turns out this is a low-level API which does not automatically propagate the inherited permissions. Your permissions will apply to NEW objects, but it doesn't modify EXISTING child objects. You should investigate either SetSecurityInfo or SetNamedSecurityInfo. Both of those will do the propagation automatically. -- Tim Roberts, t...@probo.com Providenza & Boekelheide, Inc. _______________________________________________ python-win32 mailing list python-win32@python.org http://mail.python.org/mailman/listinfo/python-win32