471,850 Members | 1,062 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,850 software developers and data experts.

Help With Setting Permissions on Folders

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.
Nov 20 '05 #1
1 1282
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/de...itysetting.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" <Je************@discussions.microsoft.com> wrote in
message news:D6**********************************@microsof t.com...
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.

Nov 20 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

1 post views Thread by pargat singh | last post: by
1 post views Thread by Ragnar Midtskogen | last post: by
3 posts views Thread by krock_112 | last post: by
13 posts views Thread by Siegfried Heintze | last post: by
reply views Thread by eNathan | last post: by
1 post views Thread by Dan | last post: by
2 posts views Thread by Chuck Anderson | last post: by
NeoPa
reply views Thread by NeoPa | last post: by
aboka
reply views Thread by aboka | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.