Results 1 to 22 of 22

Thread: IIS Server...easy question. *RESOLVED*

  1. #1

    Thread Starter
    Super Moderator Wokawidget's Avatar
    Join Date
    Nov 2001
    Location
    Headingly Occupation: Classified
    Posts
    9,632

    IIS Server...easy question. *RESOLVED*

    1stly, I know this is in the wrong thread. Didn't know where to put it. Could a MOD move it to a relevant thread please

    Thank you.

    Anyways. I have setup a web site, onlt a single page that displays "woof"
    It's running on a 2000 server under IIS
    the only problem is, if someone tries to use the site, whether they are on my LAN or in the US, they get asked for a username and password. I created a user, with cut down permissions, called "Muppet" and this allows people to see my web site after logging in.

    I don't want all visitors to enter a username and password
    How can I disable this???

    Woka

  2. #2
    Addicted Member señorbadger's Avatar
    Join Date
    Oct 2003
    Location
    Mud pools of wellingborough
    Posts
    193
    in the iis manager select the directory / website then

    right click and select properties

    followed by directory security

    and edit the anomanous acccess and controls bit (click the edit button)

    and then tick the allow anyomous access



    O and check NTFS file permissions if you turned off simple file sharing

    if so you have to set the permissions for

    IUSR_(Machine Name)

    Eg: Machine Name = Sam
    IUSR_Sam
    Last edited by señorbadger; May 25th, 2004 at 01:08 PM.

  3. #3

    Thread Starter
    Super Moderator Wokawidget's Avatar
    Join Date
    Nov 2001
    Location
    Headingly Occupation: Classified
    Posts
    9,632
    Yea. JUST BEN PLYING WTH HAT. sILLY APS LOCK

    Anyways, the default user is IUSR_APPSERVER, but it doesn't work.
    The user exists in my active directory, but I just keep getting the authentication box popping up If I change this to user Bagder and let IIS deal with te password then it works...

    What account should I use for this?
    What permissions should the account have?
    Why doesn't the IISdefault account work?

    Woka

  4. #4
    Banned jhermiz's Avatar
    Join Date
    Jun 2002
    Location
    Antarctica
    Posts
    2,492
    Originally posted by Wokawidget
    Yea. JUST BEN PLYING WTH HAT. sILLY APS LOCK

    Anyways, the default user is IUSR_APPSERVER, but it doesn't work.
    The user exists in my active directory, but I just keep getting the authentication box popping up If I change this to user Bagder and let IIS deal with te password then it works...

    What account should I use for this?
    What permissions should the account have?
    Why doesn't the IISdefault account work?

    Woka
    Relax a little.

    Allow anon access...make sure file sharing is not set to "Simple Sharing". You can either ask for a user name / password or not. That's upto you to decide.

    Jon

  5. #5

    Thread Starter
    Super Moderator Wokawidget's Avatar
    Join Date
    Nov 2001
    Location
    Headingly Occupation: Classified
    Posts
    9,632
    I am relaxed

    The anon access requires you to enter a username and password that will be used for this connection.
    The default that IIS used was IUSR_APPSERVER, which according to Active Directory is the account setup for anan web connection.

    But this still pops an authentication box up
    If I change the user to Administrator, then it allows me to view my web page without any authentication.

    Why doesn't the default user work?
    Is it bad to use the admin acc. in this way?

    Woka

  6. #6
    Banned jhermiz's Avatar
    Join Date
    Jun 2002
    Location
    Antarctica
    Posts
    2,492
    Originally posted by Wokawidget
    I am relaxed

    The anon access requires you to enter a username and password that will be used for this connection.
    The default that IIS used was IUSR_APPSERVER, which according to Active Directory is the account setup for anan web connection.

    But this still pops an authentication box up
    If I change the user to Administrator, then it allows me to view my web page without any authentication.

    Why doesn't the default user work?
    Is it bad to use the admin acc. in this way?

    Woka
    Why dont you just create a new anon account and use that?
    The anon doesnt work on most pc's after some time, because the name of your PC can change. notice the name of the user is generally the name given to the PC.

    Create a new user in the domain manager and give he / she the necessary right. Do not use admin accounts.

    Jon

  7. #7

  8. #8
    Banned jhermiz's Avatar
    Join Date
    Jun 2002
    Location
    Antarctica
    Posts
    2,492
    Yep I've used it to package my apps. What's up ?

    jon

  9. #9

    Thread Starter
    Super Moderator Wokawidget's Avatar
    Join Date
    Nov 2001
    Location
    Headingly Occupation: Classified
    Posts
    9,632
    1stly how do you deal with ActiveX EXE's? I add something in Install Run and Uninstall run right?

    How do I deal with comctl32.ocx?
    Is it just:
    Code:
    Source: C:\WINDOWS\system32\ComCtl32.ocx; DestDir: {sys}; Flags: restartreplace sharedfile regserver; Components: SW_Server SW_Client; MinVersion: 4.1.1998,4.0.1381
    ???

    When using components, instead of 3 install options (full, minimal and custom) I would only like 2.

    ooooo, and a problem I have just run into...

    I used Visual Studio installer.

    My AppID was: BadgerGrowl

    When I add this into Inno using:
    Code:
    AppID=BadgerGrowl
    It actuall installs it in the reg as BadgerGrowl_is1 and therefore doesn't remove the previous version and leaves 2 copies on the PC. Surely this is a bug in Inno?

    Woka

  10. #10
    Banned jhermiz's Avatar
    Join Date
    Jun 2002
    Location
    Antarctica
    Posts
    2,492
    Originally posted by Wokawidget
    1stly how do you deal with ActiveX EXE's? I add something in Install Run and Uninstall run right?

    How do I deal with comctl32.ocx?
    Is it just:
    Code:
    Source: C:\WINDOWS\system32\ComCtl32.ocx; DestDir: {sys}; Flags: restartreplace sharedfile regserver; Components: SW_Server SW_Client; MinVersion: 4.1.1998,4.0.1381
    ???

    When using components, instead of 3 install options (full, minimal and custom) I would only like 2.

    ooooo, and a problem I have just run into...

    I used Visual Studio installer.

    My AppID was: BadgerGrowl

    When I add this into Inno using:
    Code:
    AppID=BadgerGrowl
    It actuall installs it in the reg as BadgerGrowl_is1 and therefore doesn't remove the previous version and leaves 2 copies on the PC. Surely this is a bug in Inno?

    Woka
    reg? as in registry...

    You need to read help in INNO and no this isn't a bug. [Uninstall] sections in INNO do not delete registry dependencies, you can still get rid of them (just look at the help file for [Registry]).

    And yes you handled com dll correctly.

    Jon

  11. #11

  12. #12
    Banned jhermiz's Avatar
    Join Date
    Jun 2002
    Location
    Antarctica
    Posts
    2,492
    Originally posted by Wokawidget
    If that's not a bug then why wouldn't it uninstall the previous version of my app?

    Reg = registry

    Woka
    Using what INNO uninstall?

    Woka this is with many installers not just inno, try installing various other software and do an uninstall and go look inside your registry.

    Also you can avoid all of this by looking at [Registry] in INNO. The help file is real easy dang badger

  13. #13

    Thread Starter
    Super Moderator Wokawidget's Avatar
    Join Date
    Nov 2001
    Location
    Headingly Occupation: Classified
    Posts
    9,632
    You have lost me

    If I install an app Fishing and it has an install ID of FISH then in the reg you will find an entry under:

    HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Uninstall

    This entry will be called FISH.

    If I install this again then it looks for FISH in the uninstall bit of the reg and uninstalls it before installing a new version.

    The problem is that with VSI it placed the entry FISH as expected, but with Inno I tell it the AppID is FISH, but it actually uses FISH_is1 and therefore the previous version does not get uninstalled.

    This is a HUGE ****ing problem, and is unacceptable

    Looking at the registry using inno? eh? You have lost me...how do I get Inno to UNINSTALL the previous version?

    Woka

  14. #14
    Banned jhermiz's Avatar
    Join Date
    Jun 2002
    Location
    Antarctica
    Posts
    2,492
    From INNO help

    Code:
    This optional section defines any registry keys/values you would like Setup to create, modify, or delete on the user's system. 
    By default, registry keys and values created by Setup are not deleted at uninstall time. If you want the uninstaller to delete keys or values, you must include one of the uninsdelete* flags described below. 
    The following is an example of a [Registry] section. 
    
    [Registry] 
    Root: HKCU; Subkey: "Software\My Company"; Flags: uninsdeletekeyifempty 
    Root: HKCU; Subkey: "Software\My Company\My Program"; Flags: uninsdeletekey 
    Root: HKLM; Subkey: "Software\My Company"; Flags: uninsdeletekeyifempty 
    Root: HKLM; Subkey: "Software\My Company\My Program"; Flags: uninsdeletekey 
    Root: HKLM; Subkey: "Software\My Company\My Program"; ValueType: string; ValueName: "InstallPath"; ValueData: "{app}"
    
    The following is a list of the supported parameters: 
    
    Root  (Required) 
    	Description: 
    The root key. This must be one of the following: 
    		HKCR		(HKEY_CLASSES_ROOT) 
    	HKCU		(HKEY_CURRENT_USER) 
    	HKLM		(HKEY_LOCAL_MACHINE) 
    	HKU		(HKEY_USERS) 
    	HKCC		(HKEY_CURRENT_CONFIG) 
    	Example: 
    Root: HKCU 
    Subkey  (Required) 
    	Description: 
    The subkey name, which can include constants. 
    	Example: 
    Subkey: "Software\My Company\My Program" 
    
    ValueType 
    	Description: 
    The data type of the value. This must be one of the following: 
    		none 
    	string 
    	expandsz 
    	multisz 
    	dword 
    	binary 
    	If none (the default setting) is specified, Setup will create the key but not a value. In this case the ValueName and ValueData parameters are ignored. 
    If string is specified, Setup will create a string (REG_SZ) value. 
    If expandsz is specified, Setup will create an expand-string (REG_EXPAND_SZ) value. This data type is primarily used on Windows NT/2000/XP, but is supported by Windows 95/98/Me. 
    If multisz is specified, Setup will create an multi-string (REG_MULTI_SZ) value. 
    If dword is specified, Setup will create an integer (REG_DWORD) value. 
    If binary is specified, Setup will create a binary (REG_BINARY) value. 
    
    Example: 
    ValueType: string 
    ValueName 
    	Description: 
    The name of the value to create, which can include constants. If this is blank, it will write to the "Default" value. If the ValueType parameter is set to none, this parameter is ignored. 
    	Example: 
    ValueName: "Version" 
    ValueData 
    	Description: 
    The data for the value. If the ValueType parameter is string, expandsz, or multisz, this is a string that can include constants. If the data type is dword, this can be a decimal integer (e.g. "123"), a hexadecimal integer (e.g. "$7B"), or a constant which resolves to an integer. If the data type is binary, this is a sequence of hexadecimal bytes in the form: "00 ff 12 34". If the data type is none, this is ignored. 
    
    On a string, expandsz, or multisz type value, you may use a special constant called {olddata} in this parameter. {olddata} is replaced with the previous data of the registry value. The {olddata} constant can be useful if you need to append a string to an existing value, for example, {olddata};{app}. If the value does not exist or the existing value isn't a string type, the {olddata} constant is silently removed. {olddata} will also be silently removed if the value being created is a multisz type but the existing value is not a multi-string type (i.e. it's REG_SZ or REG_EXPAND_SZ), and vice versa. 
    
    On a multisz type value, you may use a special constant called {break} in this parameter to embed line breaks (nulls). 
    	Example: 
    ValueData: "1.0" 
    Permissions 
    	Description: 
    Specifies additional permissions to grant in the registry key's ACL (access control list). It is not recommended that you use this parameter if you aren't familiar with ACLs or why you would need to change them, because misusing it could negatively impact system security. 
    
    For this parameter to have an effect the user must be running Windows 2000 or later (NT 4.0 is not supported due to API bugs) and the current user must be able to change the permissions on the registry key. In the event these conditions are not met, no error message will be displayed, and the permissions will not be set. 
    	This parameter should only be used on registry keys private to your application. Never change the ACLs on a top-level key like HKEY_LOCAL_MACHINE\SOFTWARE, otherwise you can open up security holes on your users' systems. 
    
    The specified permissions are set regardless of whether the registry key existed prior to installation. The permissions are not set if ValueType is none and the deletekey flag or deletevalue flag is used. 
    	This parameter can include one or more space separated values in the format: 
    		<user or group identifier>-<access type> 
    	The following access types are supported for the [Registry] section: 
    
    full 
    Grants "Full Control" permission, which is the same as modify (see below), but additionally allows the specified user/group to take ownership of the registry key and change its permissions. Use sparingly; generally, modify is sufficient. 
    modify 
    Grants "Modify" permission, which allows the specified user/group to read, create, modify, and delete values and subkeys. 
    read 
    Grants "Read" permission, which allows the specified user/group to read values and subkeys. 
    
    Example: 
    Permissions: authusers-modify 
    Flags 
    	Description: 
    This parameter is a set of extra options. Multiple options may be used by separating them by spaces. The following options are supported: 
    
    createvalueifdoesntexist 
    When this flag is specified, Setup will create the value only if a value of the same name doesn't already exist. This flag has no effect if the data type is none, or if you specify the deletevalue flag. 
    deletekey 
    When this flag is specified, Setup will first try deleting the entire key if it exists, including all values and subkeys in it. If ValueType is not none, it will then create a new key and value. 
    
    To prevent disasters, this flag is ignored during installation if Subkey is blank or contains only backslashes.
    You can delete registry keys before installs..that is why I said [REGISTRY] in INNO

    Jon

  15. #15

    Thread Starter
    Super Moderator Wokawidget's Avatar
    Join Date
    Nov 2001
    Location
    Headingly Occupation: Classified
    Posts
    9,632
    That's even worse
    I don't want to delete the reg entry of the previous version. I want it uninstalled, as in if I did control panel, add/remove programs.

    using your method what happens to the previous installations files?

    Woka

  16. #16
    Banned jhermiz's Avatar
    Join Date
    Jun 2002
    Location
    Antarctica
    Posts
    2,492
    Originally posted by Wokawidget
    That's even worse
    I don't want to delete the reg entry of the previous version. I want it uninstalled, as in if I did control panel, add/remove programs.

    using your method what happens to the previous installations files?

    Woka
    Woka either I am smoking crack or you are smoking crack or we both are smoking crack :-)

    When you create an INNO script, you have a section for UNINSTALL and now one for REGISTRY. The uninstall and registry work hand in hand. Your application creates an uninstall icon right through INNO. So when you run it it also deletes the registry code. What the hell am I missing here

  17. #17

    Thread Starter
    Super Moderator Wokawidget's Avatar
    Join Date
    Nov 2001
    Location
    Headingly Occupation: Classified
    Posts
    9,632


    I am really ****ing messed up now



    If I install with Inno then it's fine. previous versions get uninstalled.
    If a previous version was packaged with anotehr installer then Inno installs a 2nd version of the App.

    Inno knows what previous version to uninstall as the reg entry, as explained above, is the same as the currect install AppID.

    but if I set the AppID to Badger (The ID that VSI uses and places in the reg) then Inno adds _is1 to it. Badger_is1 DOES NOT exist in my uninstall registry and therefore the previous version doesn't get uninstalled. I end up with 2 copies on my PC.

    If I delete:

    HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Uninstall\Badger

    This will not uninstall all the apps components, like if I uninstalled it from control panel, it just removes the uninstall entry from the reg...or does this auto uninstall the previous version?

    Woka

  18. #18
    Banned jhermiz's Avatar
    Join Date
    Jun 2002
    Location
    Antarctica
    Posts
    2,492
    Originally posted by Wokawidget


    I am really ****ing messed up now



    If I install with Inno then it's fine. previous versions get uninstalled.
    If a previous version was packaged with anotehr installer then Inno installs a 2nd version of the App.

    Inno knows what previous version to uninstall as the reg entry, as explained above, is the same as the currect install AppID.

    but if I set the AppID to Badger (The ID that VSI uses and places in the reg) then Inno adds _is1 to it. Badger_is1 DOES NOT exist in my uninstall registry and therefore the previous version doesn't get uninstalled. I end up with 2 copies on my PC.

    If I delete:

    HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Uninstall\Badger

    This will not uninstall all the apps components, like if I uninstalled it from control panel, it just removes the uninstall entry from the reg...or does this auto uninstall the previous version?

    Woka
    My question is ....
    Who is doing all this deleting? Are your users going to go into the registry and delete the keys? Is that what you are worried about. You are right deleting the keys will NOT delete the corresponding files (no way). But why are you worried about this? Users should just click the "Uninstall" button. When they click that INNO gets rid of all component files, references, and the [Registry] section in INNO gets rid of the registry entry. So that when it is installed next time you dont get the weird BadgerIs1

    Jon

  19. #19

    Thread Starter
    Super Moderator Wokawidget's Avatar
    Join Date
    Nov 2001
    Location
    Headingly Occupation: Classified
    Posts
    9,632
    Hmmm...gonna leave this reg problem for a few days.

    Anyways, back to my original q. about IIS. I still can't get it to work with anything but the admin account
    Attached to this, and the following post are screen shots of my current settings. They require a log in
    If I rename the anon user account to the admin acount then it works.
    But, the default IIS anon user account was the same permission groups as the user Brucy.

    Am I missing something?
    Does a user have to be part of a certain permission group or something?

    Cheers for ya help.

    Woof
    Attached Images Attached Images  

  20. #20

  21. #21

    Thread Starter
    Super Moderator Wokawidget's Avatar
    Join Date
    Nov 2001
    Location
    Headingly Occupation: Classified
    Posts
    9,632
    Resolved.
    For some reason windows messed up I think.
    I created all the directories and the txt file web site all within 2 mins of each other. I checked the security of the folders and they said everyone has read access. I didn't think about my index.htm file. Just checked it and for some reason it only had the admin user who can do anything with it
    Why was the files security policies different?
    I didn't manually change them.

    Anyways now it allows a normal user to be used as anon access.

    Stupid pc. bad woka

  22. #22
    Banned jhermiz's Avatar
    Join Date
    Jun 2002
    Location
    Antarctica
    Posts
    2,492
    What's your messenger handle / alias ?

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width