Folder Security

  • Thread starter Thread starter Dishan
  • Start date Start date
D

Dishan

Hi all
how do I set folder security permission to full access.( for "Everyone"
or Specific user )
regards
dishan
 
Dishan said:
Hi all
how do I set folder security permission to full access.( for "Everyone"
or Specific user )
regards
dishan


You can use the win32 API "SetFileSecurity" and the relative fucntions.

or

for pure managed code, using classes in "System.Management" namespace to
handle the WMI "ROOT.CIMV2.Win32.LogicalFileSecuritySetting" object to
set the security.


You need to understand the windows security concept, e.g. the
DACL,SecurityDescriptor,etc, in both methods.
 
Can u give me some sample code ??
thanks
Dishan

Jacky Kwok said:
You can use the win32 API "SetFileSecurity" and the relative fucntions.

or

for pure managed code, using classes in "System.Management" namespace to
handle the WMI "ROOT.CIMV2.Win32.LogicalFileSecuritySetting" object to
set the security.


You need to understand the windows security concept, e.g. the
DACL,SecurityDescriptor,etc, in both methods.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Back
Top