Tech Support > Microsoft Windows > Drivers > security in the file system.
security in the file system.
Posted by finecats on December 14th, 2004


I am creating a copy of the structure and files of a part of an existing file
system.

for example,

c:\up_near_the_top\subdir1
c:\up_near_the_top\subdir1\sd1\file1
c:\up_near_the_top\subdir1\sd2\file2

c:\up_near_the_top\subdir2\sd1\file3
c:\up_near_the_top\subdir2\sd2 \file4 ,,,, etc,

and I'm going to create this here:

MyRoot\c:\up_near_the_top\subdir1\
MyRoot\c:\up_near_the_top\subdir1\sd1\file1
MyRoot\c:\up_near_the_top\subdir1\sd2\file2

MyRoot\_c_\up_near_the_top\subdir2\sd1\file3
MyRoot\_c_\up_near_the_top\subdir2\sd2\file4 ,,,, etc,

I want to copy the security and access priveleges from the original files to
my new
copy.

Are there any examples of how I might do this?

Seems that copying the ACL's from existing directories and files might work ?

Any opinions of using

ZwQuerySecurityObject, and ZwSetSecurityObject ?

Any known gotchas laying in wait?

--
Gak -
Finecats


Similar Posts