473,326 Members | 2,173 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,326 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 1376
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Jerry | last post by:
Hi All: Is there any way I can get my script to be able to create and CHMOD folders and files??? I always get the following error: mkdir(TESTDIR): Permission denied in /usr/www/users... Is...
1
by: pargat singh | last post by:
Hi Everyone: I am posting this second time, Plaese Help. I am having a problem to open asp.Net project.The error which i am getting is Web Access Failed the default Web access mode for this...
1
by: Ragnar Midtskogen | last post by:
Hello, I am trying to get an ASP.NET application to run on a new Windows Server 2003 Standard box. I know very little about ASP.NET applications, but we have the same application running fine...
3
by: krock_112 | last post by:
I'm trying to set up a group of shared folders. Folder 1 Folder 2 Common Share I want all users that have access to folder 2 to be able to create new folders, add documents to the sub folders,...
13
by: Siegfried Heintze | last post by:
I refered the engineer at my hosting service to http://support.microsoft.com/default.aspx?scid=kb;en-us;825738 where he tried to follow the directions there. He said there was no such file:...
0
by: eNathan | last post by:
We have a repository of reports(Crystal). It is many folders and subfolders. We have set permissions to these folders based on who needs access to them; we have implemented groups in Active...
1
by: Dan | last post by:
This is the most excruciating error I have ever had to deal with in 10 years of programming with Visual Basic. I am getting an error albeit intermittent most of the time, but I am now getting it...
2
by: Chuck Anderson | last post by:
My shared host used to have Php configured such that I could place a php.ini file into any directory on my site and that was the php.ini file that the Php cgi would use when it ran scripts. ...
5
by: daokfella | last post by:
I have a custom web.config section similar to the following: <CustomAuthSettings attr1="" attr2=""> <Locations RedirectUrl="Invalid.aspx"> <add Path="test.aspx" Roles="1,2,3" Permissions="4,5,6"...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

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.