Re: Permission prob writing to HKEY_LOCAL_MACHINE
From: Mark V (notvalid_at_invalid.nul)
Date: 03/09/04
- Next message: anonymous_at_discussions.microsoft.com: "userprofile"
- Previous message: Torgeir Bakken (MVP): "Re: Permission prob writing to HKEY_LOCAL_MACHINE"
- In reply to: Terry Holland: "Permission prob writing to HKEY_LOCAL_MACHINE"
- Messages sorted by: [ date ] [ thread ]
Date: Tue, 09 Mar 2004 06:58:24 -0800
In microsoft.public.win2000.registry Terry Holland wrote:
> I have an app that reads & write to
> [HKEY_LOCAL_MACHINE\SOFTWARE\MyCompany\MyApp] in the registry. On
> my development machine this is fine as I am in the Local
> Administrators group, but the users of the application get
> permission error when attempting to write to this key (they are in
> Users group). How do I overcome this?
>
> tia
>
> Terry Holland
>
> ps All user are runnning Win XP (I couldnt find a Win XP reg
The application during installation may need to be done under an
Administrators account, but once installed it should be using HKCU to
which the User logged on has sufficient permissions for Read and
Write.
It it your app.? Can you "fix" it?
Otherwise you need either to raise the user accounts to admin. :-(
Or, change the permissions (ACLs) on the key in question. Not
desirable but it has come up before this. regedt32.exe can alter
(under and administrator account) the registry ACLs for the key and
subkeys. Win32 APIs exist to do so. Regini.exe (Resource Kit) and
SetACL.exe are other tools. SetACL is a bit complex but quite
powerful. http://sourceforge.net/projects/setacl/
You might change the ACE for the local USERS group to FULL for
example. You may need to disable Inherited permissions on the key in
question.
- Next message: anonymous_at_discussions.microsoft.com: "userprofile"
- Previous message: Torgeir Bakken (MVP): "Re: Permission prob writing to HKEY_LOCAL_MACHINE"
- In reply to: Terry Holland: "Permission prob writing to HKEY_LOCAL_MACHINE"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|