Jump to content

Need Help Setting Registry Permissions


Recommended Posts

I'm trying to figure out how to set registry permissions using the win32 api via vb6 but I'm not getting anywhere very fast.

The problem is that some Dell oem xp cd's have a controlset001\services\iastor key that has 2 unknown/bogus DACL's set to:

OWNER = S-1-5-21-846617511-297957836-1346600456-1005

GROUP = S-1-5-21-846617511-297957836-1346600456-513

If you mount the i386\setupreg.hiv in regedit and navigate to the iastor key, you get "Access Denied" and it causes trouble when building with BartPE.

I would like to clear those SID's from the ACL and add the administrators group (S-1-5-32-544) and my own owner (currently logged in user).

SubInAcl does this just fine using this from the commandline (uses the security attribs from it's parent key):

subinacl /subkeyreg hkey_local_machine\dell\controlset001\services\iastor\ /objectcopysecurity=hkey_local_machine\dell\controlset001\services

so I know it can be done (.NET is not an option).

Any help would be greatly appreciated.

Tom

Link to comment
Share on other sites

  • 3 months later...

This one really has me stumped! SubinACL seems to be the only way I've seen to be able to take ownership of this key.

The SetPerm example is the closest I've found but it seems to use the same method as regedit which results in "access denied".

Does anyone know of a good api spy program that will show me the functions that subinacl uses to accomplish this?

Edited by pcuser_tom
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...