Web Hosting Talk







View Full Version : htpasswd command prompt


Candy
05-16-2002, 08:16 AM
Hello all

I have the magic task of setting up some password protected dir's on a win2k apache server.

My problem is that when I click on the htpasswd.exe file in my bin/ directory the console pops up and vanishes within a flash ???

I can't encrypt my passwords because I cant type anything at the console......

I have the htaccess and htpasswd files made and they are working fine with plain text user and passwords

eg: user:password

but if I try to encrypt the password using encryption on some web sites that do it for you, the directory protection does not work at all ........

please help me with any information if possible

I have looked extencivly online and have found nothing about my problem of the console vanishing

Thankyou in advance

Candy

Chas
05-16-2002, 10:09 AM
Hi Candy,

Try this:

Click on Start -> run
Type in "cmd" and press enter
Then you just need to CD to the Apache bin dir and try to run htpasswd.exe

That should at least keep the console open for you.

Regards,
Charlie

Candy
05-16-2002, 10:27 AM
thanks, I'll get straight to it

I hope I remember what i did to the cmd file?, I think I disabled it or something a while ago when I was trying to "harden" my machine.......

but that is the answer I was looking for, so thankyou and I hope all the best for you.

Best wishes

Candy

Candy
05-16-2002, 10:33 AM
on the cmd permissions (win2k) I had checked all the "Deny" boxes.

I only wrote this so if ever anyone else reads it, they will have a better idea of what I am blabbering about lol;)

oh, well back to the acual job at hand .....


Candy

Candy
05-16-2002, 10:50 AM
Thanks again Chas


At the command prompt
(cmd from the run box)

I changed dir's to get to where the htpasswd.exe is and instead of having to actually run the htpasswd.exe , I just typed in the name htpasswd and then a -c to create new file and then the filename of the htpasswd file that my htaccess files would call and then typed in the user name that would be required by the authentication box and then it asked me to apply a password and confirm it EASY !! **jumps for joy**

so it looked like this

htpasswd -c filename user
and then it asked for a password

Thanks again
I hope this also helps any others who search this forum

Candy