Solved

password error, urgent help !!!!!!

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

Space-Age Communications Transitions to DevOps

ViaSat, a global provider of satellite and wireless communications, securely connects businesses, governments, and organizations to the Internet. Learn how ViaSat’s Network Solutions Engineer, drove the transition from a traditional network support to a DevOps-centric model.

Question has a verified solution.

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

In this tutorial I will focus on how to use WhizBase as a tool for sending ICQ messages to ICQ. Here I will use a new technology in WhizBase, published in WhizBase 5.1 version. In this tutorial I will use 3 files, pager.wbsp for the processing, e…
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…
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…
In a recent question (https://www.experts-exchange.com/questions/29004105/Run-AutoHotkey-script-directly-from-Notepad.html) here at Experts Exchange, a member asked how to run an AutoHotkey script (.AHK) directly from Notepad++ (aka NPP). This video…

685 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