Qondio
Front
Intel
IntelMart
Shares
My Qondio
Account
mgwalk > Intel > Apache htpasswd Usage Creating and Adding Users Accounts

qondio.com/Q1eu PRINT EMAIL

Apache htpasswd Usage Creating and Adding Users Accounts

How to create/add user to apache password file. Steps

On Windows XP Pro Start / Run /cmd (brings up the dos prompt) cd (drive)\(Apache directory)\bin Then run one of the following commands

Create file with a user
This creates a file named filename.txt with a username of user and a password of pass.

htpasswd -cbm filename.txt user pass

Add user to an existing file
This adds the username user1 and password pass to filename.txt

htpasswd -bm filename.txt user1 pass

File Locations

#Where to find or create the needed files C:\(Apache directory)\htdocs\(protected directory) = ht.acl C:\(Apache directory)\bin = (nameofpasswordfile).txt C:\(Apache directory)\conf = httpd.conf

ht.acl

AuthName popup message when asking for username and password" AuthType Basic AuthUserFile C:/(Apache directory)/bin/(nameofpasswordfile).txt Require valid-user

httpd.conf

#Where to put in the httpd.conf #I put the new entries under this entry

<Directory "C:/(Apache directory)/htdocs"> #...some data </Directory> #Added for password files #Added ht.acl because windows does not like .htaccess AccessFileName ht.acl .htaccess #Added for password protected directory
<Directory "C:\(Apache directory)\htdocs\(protected directory)"> AllowOverride All Order deny,allow Options None </Directory>

Contributed by mgwalk on August 28, 2008, at 4:41 AM UTC.

PLEASE VISIT THE CONTRIBUTOR'S WEBSITE
Image Map
Online Image Map Tool
www.image-maps.com

Reactions

No reactions yet.

Rate This Intel

Please login or sign up to rate this intel.

Comments

Please login or sign up to add a comment.

I love straightforward, step by step tutorials..thanks!

mulberry Sep 5, 2008 10:46
I have a shorter cut: address book dedicated to online activities - alpha listed

~ USER name (usually the same)
~ PASS (make up my own unless site dictates assignment)
~ email address used
~ URL site

** lock-up the address book of pass codes daily to VOID tresspassers

Let's Network

JazLive Dec 20, 2008 13:15

Share

Copyright Notice

The copyright for this content entitled "Apache htpasswd Usage Creating and Adding Users Accounts" has been specified by the contributor as:

All Rights Reserved

This content may not be copied, distributed or adapted by anyone under any circumstances.

Login Here with
Any Email Address
Any Password
No account? Sign up.

Intel Contributor
This intel was contributed by mgwalk


Qondio Archive
February, 2012
12345
6789101112
13141516171819
20212223242526
272829


2008
January, February, March, April, May, June, July, August, September, October, November, December
2009
January, February, March, April, May, June, July, August, September, October, November, December
2010
January, February, March, April, May, June, July, August, September, October, November, December
2011
January, February, March, April, May, June, July, August, September, October, November, December
2012
January, February

Sign Up
Not a member yet? Qondio is a powerful network for making it online. If you have a website to promote, we can help. Sign up and get in on the action.

About Qondio
Welcome to Qondio! Discover the awesome power this network can deliver by going to our About page. Or you could skip straight to the Sign Up form.

ABOUT
SUCCESS GUIDE
FEATURES
FAQ
ADVERTISE
CONTACT
USAGE POLICY
PRIVACY POLICY


TWITTER
FACEBOOK