Solved

password error, urgent help !!!!!!

Posted on 1998-10-15
3
161 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 20 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

Master Your Team's Linux and Cloud Stack!

The average business loses $13.5M per year to ineffective training (per 1,000 employees). Keep ahead of the competition and combine in-person quality with online cost and flexibility by training with Linux Academy.

Question has a verified solution.

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

Introduction:   Welcome to my first article ever. To begin with, the reason I write this article.  I participated in a question on Experts Exchange about the start command in Windows and there were some discussion about the usage. The discussio…
This article will show, step by step, how to integrate R code into a R Sweave document
The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.
In this fifth video of the Xpdf series, we discuss and demonstrate the PDFdetach utility, which is able to list and, more importantly, extract attachments that are embedded in PDF files. It does this via a command line interface, making it suitable …

776 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