LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions
User Name
Password
Linux - Distributions This forum is for Distribution specific questions.
Red Hat, Slackware, Debian, Novell, LFS, Mandriva, Ubuntu, Fedora - the list goes on and on... Note: An (*) indicates there is no official participation from that distribution here at LQ.

Notices


Reply
  Search this Thread
Old 04-28-2005, 12:20 AM   #1
Braytac
LQ Newbie
 
Registered: Jul 2003
Location: Sydney, Aus
Distribution: Debian (Prefered), Ubuntu, Redhat, Fedora
Posts: 22

Rep: Reputation: 15
.htaccess not accepting encrypted passwords.


Hi All
I have just set up htaccess on one of the virtual hosts i'm running. before i set it up the sire would come up wwwwdotmysitedotcom/admin. this is the page i want to restrict access to. what i did was add the following to httpd.conf

<Directory />
Options SymLinksIfOwnerMatch
AllowOverride None
</Directory>
<Directory "/home/tr0064/admin">
AllowOverride AuthConfig
Options Indexes FollowSymLinks Includes
Order deny,allow
Allow from all
</Directory>

I also tried swapping the access order from deny, allow to allow, deny but this had no effect. the contents of my .htaccess file is below:

AuthUserFile /home/tr0064/admin/.htaccess
AuthName "Authentication Required"
AuthGroupFile /dev/null
AuthType Basic
require valid-user guest

htpasswd details below:
guest:4Gu/q2xKwBQsQ
dale:.4JluYuSaty.Y

the problem being when i go to the restircted page which with the above changes brings up the log in prompt, it does not accept the passwords. I have tried even creating a local password just incase it might be trying to locate a user profile but I cant seem to see whats going wrong. basically the prompt just comes back saying the password is incorrect asking for the correct one.

any help would be greatly appreciated.

thanks
 
Old 04-28-2005, 12:55 AM   #2
Braytac
LQ Newbie
 
Registered: Jul 2003
Location: Sydney, Aus
Distribution: Debian (Prefered), Ubuntu, Redhat, Fedora
Posts: 22

Original Poster
Rep: Reputation: 15
Problem has been resolved. the following changes were made

httpd.conf changes as follows:

<Directory />
Options SymLinksIfOwnerMatch
AllowOverride None
</Directory>
<Directory "/home/tr0064/admin">
AllowOverride AuthConfig
Options Indexes FollowSymLinks Includes
Order allow,deny
Allow from all
</Directory>

.htaccess changes as follows:

AuthUserFile /home/tr0064/admin/.htpasswd
AuthName "Authentication Required"
AuthGroupFile /home/tr0064/admin/.htgroup
AuthType Basic
require group groupname

.htpasswd changes as follows:

guest:mb2.TD1h3kN8w
sue:kkdwIRQmgg2Jk

.htgroup changes as follows:

groupname: guest sue
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Qmail - Encrypted Passwords chrisfirestar Linux - Networking 9 06-25-2013 02:11 AM
Encrypted passwords on Cisco 2500 siawash Linux - Networking 5 08-10-2005 05:38 PM
Encrypted Passwords, how could I tell? wardialer Linux - Security 13 10-12-2004 02:14 PM
Moving encrypted passwords to a new host paulsm4 Linux - Software 1 09-17-2004 01:40 AM
creating encrypted passwords kidwired Linux - Security 3 01-12-2003 04:34 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions

All times are GMT -5. The time now is 11:44 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration