Re: Registry prmissions

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance




"Howard Kaikow" <kaikow@xxxxxxxxxxxxx> wrote in message
news:eqcfjIJhIHA.4844@xxxxxxxxxxxxxxxxxxxxxxx
My concern is when is it REQUIRED to set such permissions?


You are not SETTING any permissions. I thought I made that clear, but maybe
not. You are REQUESTING the key be opened with a specific permission (or
permissions). The user MUST already have the rights for the permission(s)
you're requesting. If not, opening the key will fail. Therefore, you should
request the lowest permissions necessary for the Registry operation you wish
to perform. Since only you know exactly what you're doing within the
Registry, it's up to you to know what permission you must request.

FWIW, I've yet to come across a situation where I've needed to use anything
other than KEY_READ or KEY_WRITE.

Most examples on the internet and in books do not seem to adjust privs
before reading/writing registry keys.

Because you can't.


I created a new account in the User group and ran a program while logged
into that account.
Read.writing keys was not prevented.

The keys are under HKLM\Software, but other programs might use
HKLM\Software.

I don't see how that can be right. A regular user can read under HKLM but
cannot write under it. I think you made a typo. Did you mean HKCU for one
of those? Members of the Users group can read *and* write to HKCU.

--
Mike
Microsoft MVP Visual Basic


.



Relevant Pages

  • Re: Registry prmissions
    ... You are not SETTING any permissions. ... you're requesting. ... Read.writing keys was not prevented. ... Yes, I meant HKCU, which is what I am using. ...
    (microsoft.public.vb.winapi)
  • Re: Automatic Update: Access is Denied
    ... The same boot menu shows up when one presses F8 prior to Windows loading in order to reach Safe Mode. ... The final problem was that Windows Update was disabled... ... According to many web posts this is a permissions problem. ... Remove the check marks named values and Data (only Keys ...
    (microsoft.public.windowsupdate)
  • Re: Automatic Update: Access is Denied
    ... The final problem was that Windows Update was disabled... ... According to many web posts this is a permissions problem. ... Maybe this would have worked if I had run it in safe mode, ... Remove the check marks named values and Data (only Keys ...
    (microsoft.public.windowsupdate)
  • Re: Problem installing Windows script 5.6
    ... Before attacking my registry permissions, I used a program to help ... find offending keys in HKCR like you did, ... When you say "none of my user accounts have access to these registry ... I was able to change all my offending keys' permissions to allow full ...
    (microsoft.public.windowsxp.help_and_support)
  • Re: Why does the confiuration wizard run every time I start Word 2
    ... There was some minor errors after I ran the batch file, but a vista repair ... I was fairly sure that it the problem was due to a permissions issue ... Trying to alter the permissions on some of these keys I also ... download and install SubInACL (download from ...
    (microsoft.public.office.setup)