Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I am using IIS 7 and I would like sombody to tell me how to password protect a folder.

And how would you get the username and password dialog to show when someone tries to download a file in that directory.

share|improve this question
add comment

1 Answer

up vote 2 down vote accepted

First off, make sure you have the authentication role features installed - basic authentication sounds like what you want. In server manager, right-click IIS, add role features, and install Basic Authentication (under security) if it's not installed already.

In the IIS manager, select a location, open the "Authentication" module, and configure as desired. Disabling Anonymous and enabling Basic is probably where you want to be - it'll be using Windows users, and access to the resources will be controlled by the NTFS permissions on those resources.

share|improve this answer
    
Could you explain this a little more, preferably in steps. it'll be using Windows users, and access to the resources will be controlled by the NTFS permissions on those resources. –  shad Nov 24 '11 at 13:40
1  
@shad The user that it's expecting you to authenticate as is a local (or domain) Windows account. Whether a user is allowed to view a resource is determined by whether they have permissions to the object on the filesystem permissions. –  Shane Madden Nov 24 '11 at 18:01
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.