Jump to content


Photo

htpasswd help


  • Please log in to reply
1 reply to this topic

#1 mikeymizrahi

mikeymizrahi
  • Members
  • PipPip
  • Member
  • 17 posts
  • LocationBrooklyn, NY, USA

Posted 02 August 2006 - 11:11 PM

i am using apache v. 2.0.55 with php 5.1.4

i am using authtype basic and require valid-user in my httpd file

everytime i create a new user, it overwrites the other passwordfile.

therefore, i am only able to have one user at a time

how can i stop this?

#2 youcantoo

youcantoo
  • Members
  • PipPip
  • Member
  • 19 posts

Posted 11 August 2006 - 11:15 PM

i am using apache v. 2.0.55 with php 5.1.4

i am using authtype basic and require valid-user in my httpd file

everytime i create a new user, it overwrites the other passwordfile.

therefore, i am only able to have one user at a time

how can i stop this?


use the following:
htpasswd /path/to/your/.htpasswd  username

note the missing -c after the htpasswd.........

using the command htpasswd /path/to/your/.htpasswd  username  -- will read your existing .htpasswd file and add (append) a new name to it.

using htpasswd -c  will create the .htpasswd file overwriting the any existing .htpasswd file.

if you are on a linux/unix machine from the command prompt type
'man htpasswd' or 'htpasswd --help' or try this webpage for more information
http://httpd.apache....s/htpasswd.html

Hope it help  ::)




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users