Registry hive load and unload - access denied

W

Walter

hi, since installation of sp3 on xp i have the following issue:

i try to load a registry hive using a non-administrative account under
"HKEY_USERS" using regedit. And that succeedes.

then i try to unload just loaded registry hive and i get "access denied".
This error appeared since i installed sp3. it used to work fine before.

my software is loading registry hives, checks them for certain content and
then unloads them automatically, the sp3 access denied error prevents that.
win32 api regload/regunload give the same error as trying it manually from
regedit.

what do i do ? thanks in advance

- wknupe
 
S

Shenan Stanley

Walter said:
since installation of sp3 on xp i have the following issue:

i try to load a registry hive using a non-administrative account
under "HKEY_USERS" using regedit. And that succeedes.

then i try to unload just loaded registry hive and i get "access
denied". This error appeared since i installed sp3. it used to work
fine before.

my software is loading registry hives, checks them for certain
content and then unloads them automatically, the sp3 access denied
error prevents that. win32 api regload/regunload give the same
error as trying it manually from regedit.

what do i do ? thanks in advance

Just because - check the file/folder permissions on the \Documents and
Settings\<username>\ntuser.dat file of the user whose registry hive you are
loading. Check it carefully and see who has read and who has write access
to it.

To me it sounds like you have read access - but not write.
 
R

Reini

Shenan Stanley said:
Just because - check the file/folder permissions on the \Documents and
Settings\<username>\ntuser.dat file of the user whose registry hive you are
loading. Check it carefully and see who has read and who has write access
to it.

To me it sounds like you have read access - but not write.

Hi!

since sp3 as an normal user without adminstration rights you can add a
registry hive under HKEY_USERS via regedit but you can't remove it again.

you get the same behavior when using RegLoadKey (this works) and
RegUnloadKey (this doesn't work anymore since sp3) in a programm running
under an account without administration rights.

till sp2 this works fine.

the question is, if this change of the behavior is really intended with sp3
or is this a (maybe already known) bug.

Reini
 

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