SecurityException in Registry

  • Thread starter Dmitriy Kolesnik
  • Start date
D

Dmitriy Kolesnik

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
without changing permissions manually?

Help me please if anybody can!
Thank You.

Dmitriy.
 
V

Vadym Stetsyak

AFAIK you cannot read them without assigning additional permissions, that
you will be able to use with your current account
 
N

Nicole Calinoiu

Permissions on registry keys can be set without manual user intervention via
the UI. For example, there are Windows API functions that allow setting key
ACLs. As with the manual approach, such changes must be made by an account
with sufficient permissions to modify the ACL on the key.

That said, the highly restrictive ACLs on subkeys of
HKEY_CURRENT_USER\Software\Microsoft\Protected Storage System Provider key
are there for very good reason, and loosening the permissions on such keys
is generally not a particularly good idea...
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top