Solved

Password Protection Problems

Posted on 1997-07-19
4
185 Views
Last Modified: 2013-12-25
I'm having trouble setting up password protection on a server. The procedure involves creating an .htpasswd and an .htaccess file which would be used to protect a directory or file. I created the .htaccess file offline, giving details of where the .htpasswd file would be located etc., saved it as a text file, and then uploaded it as .htaccess into the directory I wanted to password protect. I then created the
htpasswd file using Telnet by typing 'touch .htpasswd' at the prompt, and then entered a new password and username within the file. When I tried it out it said that it either didn't know what username the password belonged to and vice versa. Thus I could not access the directory I had    protected. Could it be where the files are situated or
even how they are created that is causing this problem? Can anyone please explain what I am doing wrong. Any help would be greatly appreciated.
Thanks.
Russ
0
Comment
Question by:rdharper
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
4 Comments
 

Author Comment

by:rdharper
ID: 1829183
Edited text of question
0
 
LVL 1

Expert Comment

by:wisdom042597
ID: 1829184
There is a special program called "htpasswd" you need to use to set up the .htpasswd file.   If you're running Apache's web server, you'll find the program in the /support directory.  The .htpasswd file contains one line per user account, the user's name, followed by a colon and the encrypted password.  You cannot manually edit this file (except to delete an account by erasing the corresponding line).

Usage: htpasswd [-c] passwordfile username
The -c flag creates a new file.

Hope this helps!
 - Wisdom
0
 

Author Comment

by:rdharper
ID: 1829185
The software is already available on the server, I am just having difficulty using it. Would be obliged for further clarification.
0
 
LVL 2

Accepted Solution

by:
Voodoo earned 100 total points
ID: 1829186
0

Featured Post

The Orion Papers

Are you interested in becoming an AWS Certified Solutions Architect?

Discover a new interactive way of training for the exam.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In this tutorial I will show you how to make a simple HTML bar chart with the usage of WhizBase, If you want more information about WhizBase please read my previous articles at http://www.experts-exchange.com/ARTH_5123186.html (http://www.experts-ex…
The Windows functions GetTickCount and timeGetTime retrieve the number of milliseconds since the system was started. However, the value is stored in a DWORD, which means that it wraps around to zero every 49.7 days. This article shows how to solve t…
Learn the basics of if, else, and elif statements in Python 2.7. Use "if" statements to test a specified condition.: The structure of an if statement is as follows: (CODE) Use "else" statements to allow the execution of an alternative, if the …
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)

726 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question