Help with .htaccess file - How do I go about adding users/passwords?

They have: 36 posts

Joined: Mar 1999

I have setup an .htaccess file to protect a file manager script that was installed, but I'm not sure as to how to ad a username/password in the pass.txt file. Anyone have the answer?

They have: 178 posts

Joined: Sep 1999

You'll have to get a script to do it. The password has to be encrypted.

----------
This bulletin board is powered by BigTalker
BigTalker - bigtalker.com

They have: 1,587 posts

Joined: Mar 1999

Their an excellent page with all the info you'd ever need on .htaccess at my search directory, link is below in my signature. Just do a search for .htaccess and you'll be on your way to infinite knowledge of .htaccess.

----------
Isn't it time you started making money with your site!
http://www.birminghamnet.com/cgi-bin/links/pages/WebmasterResources/MakingMoney

Traffic-Website.com free traffic, affiliate programs, hosting, & domain names.
My Site got hacked, but i'm coming back?

They have: 2 posts

Joined: May 1999

you need to use htpasswd
here how to use it:
htpasswd pass.txt username

and it will prompt you for the password.
to create a neww password file use -c
htpasswd -c passwordfile username
to find where is htpasswd type at the telnet prompt
find / -name 'htpasswd'

regards

They have: 4 posts

Joined: May 1999

All the encryption is, is the password crypted (in perl)...
$password = crypt("mypass", "l1" );
put it in a file
username:y1kR9kDCFnMtQ

That's how the script's do it.
http://hoohoo.ncsa.uiuc.edu/docs/tutorials/user.html#Basic

<<edited by Patrick A. Baer - added a space to avoid smiley>>

Want to join the discussion? Create an account or log in if you already have one. Joining is fast, free and painless! We’ll even whisk you back here when you’ve finished.