Solved

creating inheritable registry entries

Posted on 2001-08-08
5
208 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

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

This article is a collection of issues that people face from time to time and possible solutions to those issues. I hope you enjoy reading it.
This article provides a convenient collection of links to Microsoft provided Security Patches for operating systems that have reached their End of Life support cycle. Included operating systems covered by this article are Windows XP,  Windows Server…
This video Micro Tutorial explains how to clone a hard drive using a commercial software product for Windows systems called Casper from Future Systems Solutions (FSS). Cloning makes an exact, complete copy of one hard disk drive (HDD) onto another d…
In this video, viewers are given an introduction to using the Windows 10 Snipping Tool, how to quickly locate it when it's needed and also how make it always available with a single click of a mouse button, by pinning it to the Desktop Task Bar. Int…

696 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