Solved

password error, urgent help !!!!!!

Posted on 1998-10-15
3
156 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
Comment Utility
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
Comment Utility
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
Comment Utility
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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Making a simple AJAX shopping cart Couple years ago I made my first shopping cart, I used iframe and JavaScript, it was very good at that time, there were no sessions or AJAX, I used cookies on clients machine. Today we have more advanced techno…
Active Directory replication delay is the cause to many problems.  Here is a super easy script to force Active Directory replication to all sites with by using an elevated PowerShell command prompt, and a tool to verify your changes.
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…
Learn how to match and substitute tagged data using PHP regular expressions. Demonstrated on Windows 7, but also applies to other operating systems. Demonstrated technique applies to PHP (all versions) and Firefox, but very similar techniques will w…

728 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

Need Help in Real-Time?

Connect with top rated Experts

8 Experts available now in Live!

Get 1:1 Help Now