473,813 Members | 3,448 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Registry ACLs

My appologies if this shows twice (I forgot to include a subject the first
time)

I'm looking for a way to obtain the ACL for a specific registry key. What I
need is something that works in a similar way to the following for file ACLs

Set wmiSecuritySett ings = wmiServices.Get
("Win32_Logical FileSecuritySet ting.Path='" & fname & "'")
intRetVal =
wmiSecuritySett ings.GetSecurit yDescriptor(wmi SecurityDescrip tor)

Any suggestions other than using the ADsSecurity.DLL (which is not shipped
with WinXP)? I cannot install any SW on the box where this will be running.
Feb 12 '07 #1
1 1492
either

a) keep your data in a database and not the registry
or
b) dotnet is too verbose; your IDE is expecting more verbosity... I
would reccomend just adding a whole assload of more code in it and see
if it works then


On Feb 12, 2:01 pm, "Jose Cintron" <l0rddarkf0...@ hotmail.comwrot e:
My appologies if this shows twice (I forgot to include a subject the first
time)

I'm looking for a way to obtain the ACL for a specific registry key. What I
need is something that works in a similar way to the following for file ACLs

Set wmiSecuritySett ings = wmiServices.Get
("Win32_Logical FileSecuritySet ting.Path='" & fname & "'")
intRetVal =
wmiSecuritySett ings.GetSecurit yDescriptor(wmi SecurityDescrip tor)

Any suggestions other than using the ADsSecurity.DLL (which is not shipped
with WinXP)? I cannot install any SW on the box where this will be running.

Feb 14 '07 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
2073
by: Daniel Cayouette | last post by:
in C# is there a managed code example to set ACLs on a folder. We're currently using the win32api and would like to migrate this functionality to managed code in C#
1
1718
by: Peter Rilling | last post by:
How can I pass credentials along with a file access request. When a person uses an application, it uses their credentials when accessing resources. Now, what if the user wants to use the application to open files that are in areas protected by ACLs? I did not see any constructor that accepts a NetworkCredential object.
3
3269
by: Dmitriy Kolesnik | last post by:
Hello all! I have problem with reading data from registry. I work on the one machine. My operation system is Windows XP SP2. I read data from registry with help OpenSubKey and SecurityException appeares for key HKEY_CURRENT_USER\Software\Microsoft\Protected Storage System provider\S-1-5-21-2025815041-1961764723-2087665911-3808. I saw permissions in this key - permissions for SYSTEM exist only. How I can read this key
0
1143
by: Sherwood | last post by:
My current scenario is users logging in to our website and being directed to a specific directory based on who they are. The ACLs on the destination result in prompts for credentials (the windows popup dialog). I'm using basic windows authentication with https to protect the username and password. I'd like to have a nicer login UI using Forms authentication against the AD, but would still like to use ACLs to control resource access. ...
0
954
by: Marcus Dano | last post by:
Hi, I want to read all ACLs from a single folder in my NTFS partition. I'am using following code: Dim dir As DirectoryInfo = New DirectoryInfo("C:\demo") Dim sec As DirectorySecurity = dir.GetAccessControl(AccessControlSections.All)
0
1354
by: Curt K | last post by:
We run some web services (IIS 5 and IIS 6) that communicate to a COM out of process server, which in turn communicates to another out of process COM server (long story). We have had lots of permissions issues getting the web service to communicate to the COM object to the point that we use the "administrator" account (yes, I know this is really bad). We need to tidy this for security purposes and to run under Vista and properly set up...
5
9757
by: dananrg | last post by:
Is there a standard library module in Python 2.4 (Win32) that will return directory permissions / ACLs (e.g. users, groups, and what rights they have)? Otherwise, I'm faced with sending "cacls dirName" commands via os.popen as below, and then parsing and comparing the text output. Basically, I'd like to compare what the ACLs a directory should have against what the actual ACLs are.
2
2329
by: Jose Cintron | last post by:
I'm looking for a way to obtain the ACL for a specific registry key. For example if I want the permissions of HKLM\SOFTWARE\Microsoft I would get something like Administrators Full Control Creator Owner Special Permissions (List of special permissions here) Power Users Read Special Permissions (List of special permissions here) SYSTEM Full Control Users Read
1
2192
by: =?Utf-8?B?Q2hyaXN0aWFuIGZyb20gRnJhbmNl?= | last post by:
I want to do the folllowing in C# : I have a DirectoryEntry : DirectoryEntry usr = new DirectoryEntry("LDAP://cn=Mike,ou=Users,dc=MyDc"); With "AD Users & Computers" Security tab an administrator had give to some users the right to write the accountExpires property of this Account. I want to read the ACLs on this object and obtain the list on the users who have this right. How can i do ?
0
10665
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. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10406
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
10139
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 choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9221
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 launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7681
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6897
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
1
4358
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
2
3881
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
3029
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 effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.