Re: Allow Registry Access but NOT install programs

From: Walter Schulz (Walter_Schulz_at_t-online.de)
Date: 07/07/03


Date: Mon, 07 Jul 2003 21:53:05 GMT


>I have a user logged into a Win2k domain. They have a program that needs to
>access the registry when it is launched. Unfortunately the only workaround
>is to grant admin or power user rights. neither of which I want to give
>because they have a bad habit of installing programs like AIM and snood. How
>to I let this one program access the registry without letting them install
>programs?

As CharlyOz said: Use REGEDT32 to apply registry permission. In most
cases you need to add some NTFS-permissions for the %Programfiles%
directory.

This is the procedure we're using to find out which settings are
needed.
REGMON and FILEMON are tools downloadable at www.sysinternals.com.
The tools doesn't need to be installed, just expand it in a temp
directory on the client (C:\temp).
The application is installed and runs fine under administrative
accounts.
Log in as domain user. Run "runas /user:dom\administrator cmd"
In the command line interface poping up start c:\temp\regmon and
C:\temp\filemon.
Open the application from the menu or explorer (under user rights)
Now switch to the monitoring tools, stop the scanning itself and
search for ACCDENIED in regmon screen and ACCESS DENIED in filemon.
There is a highlight option in the menu which comes handy because the
logs grows very, very fast sometimes.
Ignore the obligatory access errors to a media and security subkey.
For the ACCDENIED keys in regmon (recommended to change before going
to filemon) you have to open REGEDT32 from the command line and follow
the description CharlyOz pointed to.
Then clear up the regmon log, start scan process and run the
application again. You may have to redo this one several times until
no ACCDENIED item related to the app will be shown.

Then you can switch to filemon and have a look on the file
permissions. Some apps still using INI files located in %ProgramFiles%
to store user settings. Or even better: INI files located in %WINDIR%
(%SYSTEMROOT%). To change this I usually access \\client\c$ over the
network using a second client logged in with dom admin rights.

In some perverted cases you may need to use GPOs to set permissions to
INIs in %SYSTEMROOT%. Some apps insists to change files by deleting
the file and recreating in after. Result: File permissions given once
by SUBINACL are lost.

If the client is runnig fine you have done the first part. Document it
well!

To prevent going mad changing several clients you may want use a batch
with SUBINACL or a GPO. Using SUBINACL inside a computer logon script
(*not* in a user logon script) is possible.

Further questions?

Ciao, Walter



Relevant Pages

  • RE: Syncing fax server with company web
    ... please backup the whole registry list first in case any unexpected. ... Files\Microsoft Integration\Windows Small Business Server 2003\Logs''. ... And then we should push the shared fax client application from server to ... Microsoft CSS Online Newsgroup Support ...
    (microsoft.public.windows.server.sbs)
  • RE: Cant install Outlook 2003 upgrade on client
    ... Thank you for posting in the SBS newsgroup. ... please try the following steps on the client workstation and see ... Delete the keys in the registry ...
    (microsoft.public.windows.server.sbs)
  • Re: 64 bit C# trying to call a 32 bit CPP ATL Service
    ... Working with the Microsoft tech on a live session we could easily duplicate ... the error from both a 64/cpp and a 64/.net client to the 32 bit atl service. ... candidate would be the registry reflection. ... Microsoft Online Community Support ...
    (microsoft.public.vc.atl)
  • Re: using SD CARD as a USB Mass Storage Device in WINCE 5.0
    ... The Function Controller driver and the client driver are running now. ... I am assuming that you have the driver in your build as well as the registry ... I want to expose our SD Memory Card as a USB Mass Storage device. ...
    (microsoft.public.windowsce.platbuilder)
  • Re: ConnectComputer error log
    ... is the final variable was changing the client computer name. ... the registry entry returned to the original incorrect ... The server commands ran successfully and returned expected values. ... > SBS Newsgroups: ...
    (microsoft.public.windows.server.sbs)