Welcome to WebmasterWorld Guest from 54.145.221.99

Forum Moderators: brotherhood of lan & mack

Message Too Old, No Replies

Changing Passwords

How to edit .htaccess/.htpasswd

   
10:54 am on Jan 6, 2003 (gmt 0)

10+ Year Member



Hello

I've got a password protected beedoobup set up on my virtual server and i want to change the password... I know I need to edit the .htpasswd file but how do I generate the password? Is there a program or cgi that will do it for me? I tried 'The Commander' but without luck...

Thanks for helping!

11:32 am on Jan 6, 2003 (gmt 0)

10+ Year Member



You need to use the command line program htpasswd.
Syntax is as follows:

htpasswd /path/to/.htpasswd <username> <password>

That will then add a new user to the file with the correctly encrypted password.

To change the password you're probably best off deleting the current user and then using the above command to create the username again with the new password.

HTH
JP

12:02 pm on Jan 6, 2003 (gmt 0)

10+ Year Member



How do i use the command line program htpasswd?

The rest makes sense - thanks for your help!

12:05 pm on Jan 6, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Do you have a terminal access to your account?
If not, then create a cgi that calls that command and load the url in your browser.
4:30 am on Jan 8, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



another way is to do by hand using the crypt function to create a .htpasswd password.
4:49 am on Jan 8, 2003 (gmt 0)

WebmasterWorld Senior Member txbakers is a WebmasterWorld Top Contributor of All Time 10+ Year Member



I found a WONDERFUL htaccess web based management program. You can find it Here [htaccess.technotrade.com]

I used this for several years before switching to a windows server. I like it alot.

I noticed they have a newer version as well.