473,574 Members | 2,898 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 1398
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_LogicalSh areSecuritySett ing,
Win32_SecurityD escriptor 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.Manageme nt namespace.

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

"Jeremy Winchell" <Je************ @discussions.mi crosoft.com> wrote in
message news:D6******** *************** ***********@mic rosoft.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
2116
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 there a way I can enable the script to do all that by placing a ..htaccess file which contains some permissive directives?
1
989
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 project is set to file share, but the project folder at http://XX.X.X.XXX/WebApplication1' cannot be opened
1
1015
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 on another 2003 box, so I am just trying to set the new server up to match the new one. The application is a DLL and an is invoked with an aspx...
3
1885
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, pretty much do everything but delete. I have been unsuccesful so far. I either have to give everyone complete access which then gives them the...
13
3608
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: Document settings\ServerName\ASPNET\Local settings\Temp I said it must be a typo, they meant to say c:\Documents And Settings\Server...
0
933
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 Directory. Problem: I want to populate a tree view with only the folders the user has permission to. I can get the groups the user is a member of. I...
1
1525
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 consistently on one of my aspx pages. the following is the error: It happens on either one of two calls. It happens on command.Fill or the...
2
2217
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. Since upgrading to Php5.1 that is no longer possible (not allowed in Php5.1 (?) ). Anyway, ... this was a very handy way for me to set the include...
5
2163
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" /> </Locations> </CustomAuthSettings> Everything seems to work just fine. When I have config files in nested folders, Attr1 and Attr2 of the...
0
7835
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
7753
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
0
8095
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
0
8132
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
0
6500
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
0
3769
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
1
2265
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
1365
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
1096
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

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.