Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

user authentication problem

Status
Not open for further replies.

magicc

Technical User
Oct 21, 2000
2
0
0
MY
i would be most obliged if u could help me out here.

i'm using a server from my friend. according to him it's a dedicated server.
so i can't find any .conf file.

my main problem here is setting up user authentication with the .htaccess

example, i'm normaly telnet into the sever with username "abc" and password "123"

my .htaccess file
-----------------

AuthUserFile /home/abc/users/.htpasswd
AuthName Webmaster_Maintenance
AuthType Basic
require valid-user

------------------

after this i use the commands below
htpasswd -c /home/abc/users/.htpasswd user2
htpasswd /home/abc/users/.htpasswd user3


now when i try to access the page the dialog box prompt up requesting password. if i enter user2 or user3's password and username.. it won't recognize my password.

ONLY when i ENTER MY TELNET LOGIN ID which "abc" and PASSWORD "123"
then it will only let me view the page.

what is wrong ? is it something wrong with the main server config ? did my friend (the server admin) disable some features ? or is my configuration for my .htaccess is wrong ?

hope to hear from you guys soon..
thanks a bunch !!!
[sig][/sig]
 
hi ,
seems that you will need to check the http.conf file.
i usually try to specify each folder i want to protect in the http.conf, it can be redundant sometimes, but i'm sure it works ...
use a <directory> directive:

<directory /path/to/directory>
AllowOberride All
</directory>

hope this helps :)
Jerome
 
dumb me of course it is oVerride with a v not a b ....

<directory /path/to/directory>
AllowOverride All
</directory>

Jerome
 
thanks jerome.. will try that out :)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top