Solved

creating inheritable registry entries

Posted on 2001-08-08
5
202 Views
Last Modified: 2013-12-28
I need to know how to set a registry entry in NT, while logged in as administrator, that will subsequently be picked up by a webserver CGI run under the IIS webserver service.
The entry needs to show up in HKEY_CURRENT_USER\Software\Informix\ENVIRONMENT\INFORMIXDIR  when the CGI runs.
The CGI appears to be run as user  IUSR_<servername>


(Another accepatable answer would be to "what password does IIS setup fir its default user IUSR_<servername>)









0
Comment
Question by:nrbreen
  • 2
5 Comments
 
LVL 4

Accepted Solution

by:
emb earned 200 total points
ID: 6363075
You can edit the registry of IUSR_<servername> directly using regedt32.exe.  It will appear under HKEY_USERS\{<sid>} where <sid> is the SID corresponding to IUSR_<servername>.  If it isn't obvious which SID to choose, you can use psgetsid from sysinternals to translate the username to the corresponding SID.

http://www.sysinternals.com/ntw2k/freeware/psgetsid.shtml

emb
0
 
LVL 3

Author Comment

by:nrbreen
ID: 6366194
Under HKEY_USERS, I can only see one S-* branch, and that has the "administrator" SID. (I am logged in as administator)

Actually, as I experiment, I see that I can only ever see the HKEY_USERS entry for the logged in user!!!
Fair enough for non-root users - but how dumb is that - admin cannot work on all entries??????

Which circles right back to the original question........

0
 
LVL 3

Expert Comment

by:cfarca
ID: 6380319
IUSR_<server name> is the anonymous user account used by IIS. You can change that user name and his password in IIS management tools ( WEB base access or direct access from the server hosting IIS).
Hope this will help, Chris.
0
 
LVL 3

Author Comment

by:nrbreen
ID: 6381749
Thanks for the note Chris - however I want to ultimately create up an automated setup script that will set the registry entries for the default user, without the client having to alter that user (i.e. fiddle with the IIS setup).

"emb" pointed out the sid hkey_users entries - I wonder if, even though the entries for another user do not show via regedit, a C program can still alter entries for another user?

neilb
0

Featured Post

Live: Real-Time Solutions, Start Here

Receive instant 1:1 support from technology experts, using our real-time conversation and whiteboard interface. Your first 5 minutes are always free.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

In this article, I will show you HOW TO: Install VMware Tools for Windows on a VMware Windows virtual machine on a VMware vSphere Hypervisor 6.5 (ESXi 6.5) Host Server, using the VMware Host Client. The virtual machine has Windows Server 2016 instal…
How to record audio from input sources to your PC – connected devices, connected preamp to record vinyl discs, streaming media, that play through your audio card: Vista, Windows 7, Windows 8, Windows 8.1 and Windows 10 – both 32 bit & 64.
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
The viewer will learn how to successfully create a multiboot device using the SARDU utility on Windows 7. Start the SARDU utility: Change the image directory to wherever you store your ISOs, this will prevent you from having 2 copies of an ISO wit…

816 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now