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.
 
Back
Top