Help With Setting Permissions on Folders

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I have an applications that imports new AD users. It creates a folder to store the user profile information, and a folder for their home directory.

I would like to set the Permissions on these two folder objects, but I am unsure how. I am fairly new to this side of things so I'm looking for some help or guidance on how to do this.

I haven't worked with ACL's much, so I'm not sure what kind of interfaces to tools are available to help set them on these objects.

Any help would be appreciated.
 
you can try using the shell command cacls.exe from within the application.
just type in cacls.exe /? in the command shell for options. if that doesn't
work out, you can use WMI to set the permissions. The classes that you might
want to look at would be Win32_Share, Win32_LogicalShareSecuritySetting,
Win32_SecurityDescriptor and Win32_ACE. Here's an example of how to change
access settings on a file:
http://msdn.microsoft.com/library/d...in_class_win32_logicalfilesecuritysetting.asp

this is in vbscript - you'll need to change this to .net using the WMI class
wrappers under System.Management namespace.

hope this helps you go in the right direction..
Imran.

Jeremy Winchell said:
I have an applications that imports new AD users. It creates a folder to
store the user profile information, and a folder for their home directory.
I would like to set the Permissions on these two folder objects, but I am
unsure how. I am fairly new to this side of things so I'm looking for some
help or guidance on how to do this.
I haven't worked with ACL's much, so I'm not sure what kind of interfaces
to tools are available to help set them on these objects.
 

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

Back
Top