Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

password error, urgent help !!!!!!

Posted on 1998-10-15
3
Medium Priority
?
167 Views
Last Modified: 2013-12-25
I have an access to web-server, recently I have setup a login and password protection. I would like to protect this path /home/mcs436-2/web-docs/info  . info is a directory.
and my .htpasswd is stored in /home/mcs436-2/web-docs/info/.htpasswd

and in access.conf I have this(segment) :

     <Directory /home/mcs436-2/web-docs/info>
       AuthName tan
       AuthType Basic
       AuthUserFile /home/mcs436-2/web-docs/info/.htpasswd
       <Limit GET POST>
        require valid-user
       </Limit>
     </Directory>

I think my setup is correct. but when I type my login name and password, it give an error, said incorrect password.
I try so many time, still the same result. I am sure I typed correct login and password. And I have done chmod 644 .htpasswd , also restart the server. Can someone tell me what is wrong ?
0
Comment
Question by:tanc02
  • 2
3 Comments
 
LVL 5

Expert Comment

by:aioudine
ID: 1829105
see "How do I set up passwords for my web pages?" at
http://enteract.com/web_auth.html


0
 
LVL 5

Expert Comment

by:aioudine
ID: 1829106
at least Add "AuthGroupFile /dev/null" directive
Also did you create".htpasswd" file using htpasswd utilite?



0
 

Accepted Solution

by:
ycli earned 40 total points
ID: 1829107
Go and edit the .htpasswd yourself, it looks like:
userid:cryped_password
eg:
dealers:ffjFfXQc5h9.I
john:khGFjdkwwfsw
the cryped password if 13 char long, if you don't know how to get them... run this script..:
#!/usr/bin/perl
# Change your perl path to meet need..
    print "Enter Password: ";
    $field = <STDIN>;
    print "Enete Salt: ";
    $salt = <STDIN>;
    $field = crypt ($field, $salt);
    print "Password converted to: $field\n";
0

Featured Post

Hire Technology Freelancers with Gigs

Work with freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely, and get projects done right.

Question has a verified solution.

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

This tutorial will discuss the log-in process using WhizBase. In this article I assume you already know HTML. I will write the code using WhizBase Server Pages, so you need to know some basics in WBSP (you might look at some of my other articles abo…
Recently I have been answering a lot of questions like this in IT forums that I frequent. The question posed is usually something along the lines of "We have software X installed and need to uninstall it for reason Y" or some other variant of the sa…
Learn the basics of lists in Python. Lists, as their name suggests, are a means for ordering and storing values. : Lists are declared using brackets; for example: t = [1, 2, 3]: Lists may contain a mix of data types; for example: t = ['string', 1, T…
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…
Suggested Courses

877 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