Link to home
Start Free TrialLog in
Avatar of anthtaddeo
anthtaddeo

asked on

IIS file password protection

I'm a newby with IIS and have been asked specifically to learn password protecting files for a job interview.

Assuming I am understanding the exact request correctly, here is what I am attempting to do.  I'm trying to get prompted for a login when a user named jethro attempts to access file1.htm.  The user account jethro has been added to local users and groups.  Windows authentication is enabled in IIS authentication.   Anonymous authentication is disabled.  I believe I did it exactly the way the youtube tutorial below says.  For some reason his works and mine doesnt.  He clicks on file1 and gets prompted for a login.  I click on file1.htm and the file opens without allowing me to put in jethro's credentials.

Does anything pop in anyones mind about what I might be missing?  I dont expect anyone to actually watch the youtube but its there just in case someone wants to see exactly what I am trying to do.

http://www.youtube.com/watch?v=VlDkJ3RlcAg
Avatar of Bembi
Bembi
Flag of Germany image

As you deal with NTFS permissions, investigate your group membership and see, if you are a member of a group, which gets permissions by the group membership.
So, if you are admin, you inherit the permissions from the admins group.

Second, IE stores the user, so if you logon before, the browser keeps your logon as long as you are visiting the site.
So just close the broser (all browser windows) before you try it again.
Avatar of anthtaddeo
anthtaddeo

ASKER

Thank  you! I think you are correct about the NTFS permissions.  Now I am finding it does work but just not the way it does for the guy in the video so I'm confused.  If someone can help open up my understanding it would be greatly appreciated.

When I was doing this I was logged in as admin.  Reason being is the guy in the video never switched users when testing out his work so I think he was doing this from an admin account as well "having admin permissions".  Basically though, I was expecting to go to the home page "still logged in as admin".  Once I was on the home page I was expecting to click on a link "file1.htm".  When clicking on this link is when I was expecting to get prompted for a password.  It never made sense to me to begin with because  I never configured that specific file to do anything like this.  However, this is how it seemed to work for the guy in the video and I dont understand where I am going wrong.

After the Bembi post, I decided to switch the user to Jethro.  Now when going to localhost, I get prompted to log in but here is the problem.  My goal is to password protect a specific file on the homepage.  Not the homepage itself.  Somehow it worked for the guy in the youtube I provided but it makes no sense to me because I dont understand what he did to make that link "file1.htm" link throw up a login box.
ASKER CERTIFIED SOLUTION
Avatar of Bembi
Bembi
Flag of Germany image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
It worked and makes perfect sense now.   I've read about permissions but this excercise  and your assistance provided a better understanding.  Thanks a lot.  I really appreciate it.
Bembi was right on