View Single Post
  #7  
Old March 18th, 2002, 03:18 PM
Jadey's Avatar
Jadey Jadey is offline
sosumi
 
Join Date: Apr 2001
Location: CANADA
Posts: 771
Thanks: 0
Thanked 0 Times in 0 Posts
Jadey is on a distinguished road
Re: How-to: Password protect Apache folders

You should have read the tutorial more carefully. If you look at again, it does tell you how to create this file. Specifically this part:

Quote:
Originally posted by Jadey
Now, back in the terminal, type:

sudo htpasswd -c .htpasswd username
This creates the .htpasswd file. The tutorial was written for not having one in the first place, as they don't come in a default Apache install.

I should point out to that the -c option guarantees you overwrite an existing .htpasswd file. If you want to add new users to an existing .htpasswd file, use the same command and drop the -c.

To answer your next question, you can open the .htpasswd file with a text editor. You'll see it in the form of:

username:encryptedpassword

If you want to delete one of the users, just delete the one line that is for them, and save the .htpasswd file.

Last edited by Jadey; March 18th, 2002 at 11:08 PM.
Reply With Quote