Solved

password error, urgent help !!!!!!

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

[Webinar] How Hackers Steal Your Credentials

Do You Know How Hackers Steal Your Credentials? Join us and Skyport Systems to learn how hackers steal your credentials and why Active Directory must be secure to stop them. Thursday, July 13, 2017 10:00 A.M. PDT

Question has a verified solution.

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

In threads here at EE, each comment has a unique Identifier (ID). It is easy to get the full path for an ID via the right-click context menu. However, we often want to post a short link within a thread rather than the full link. This article shows a…
Originally, this post was published on Monitis Blog, you can check it here . In business circles, we sometimes hear that today is the “age of the customer.” And so it is. Thanks to the enormous advances over the past few years in consumer techno…
Learn the basics of while and for loops in Python.  while loops are used for testing while, or until, a condition is met: The structure of a while loop is as follows:     while <condition>:         do something         repeate: The break statement m…
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…

636 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