Environment Variables

Discussion in 'Server Security' started by John Thayer, Oct 19, 2004.

  1. John Thayer

    John Thayer Guest

    How does one give a particular application (Procomm Plus) the permission to
    set the value of an environment variable in Win2003 Server? Thanks.
    John Thayer, Oct 19, 2004
    1. Advertisements

  2. If its a user variable, then the application runs under the context of
    whoever ran it, and it can change that user's variables.

    For a system environment variable, you would need to run the app under an
    account with admin rights. This is the same scenario as "how to allow my
    app to install device drivers" or "how to allow my app to modify system
    files/write to HKEY_LOCAL_MACHINE registry"

    As a workaround you can try using REGEDT32 (or REGEDIT on XP or Server 2003)
    to modify permissions on the appropriate keys for the variable, on each
    machines HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session
    Manager\Environment -- you need to allow Users (whover the app runs "as")
    the ability to change these entries.

    I haven't tested this...
    Colin Nash [MVP], Oct 20, 2004
    1. Advertisements

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 (here). After that, you can post your question and our members will help you out.