Java Mailing List Archive

http://www.apache-httpd.com/

Home » users.httpd »

RE: [users@httpd] htpasswd

Luis Moreira

2008-05-16

Replies:

Author LoginPost Reply

It asks for usage because you are using it wrong.

 

If you specify “-c” option you are saying you are going to create a new file.

But you must at the same time enter the first user it will contain

 

/usr/local/apache2/bin/htpasswd -c passwdfile first-user

 

Then it will ask for the password.

 

After that, just enter the file and the user and a new user will be added


/usr/local/apache2/bin/htpasswd  passwdfile  second-user

 

 

Luis Moreira
Analista
E. S. Informática
Gestão de Sistemas, Qualidade e Produção
Comunicação de Dados e Segurança

 


From: sakthi v [mailto:listsakthi@gmail.com]
Sent: sexta-feira, 16 de Maio de 2008 15:59
To: users@httpd.apache.org
Subject: [users@httpd] htpasswd

 

Hello,

htpasswd is not working , what ever option i give it provides usage options.,,

/usr/local/apache2/bin/htpasswd -c passwdfile

Usage:
        htpasswd [-cmdpsD] passwordfile username
        htpasswd -b[cmdpsD] passwordfile username password
.....................................................................
       ....................................................... etc

strange ?! i tried almost options but always it gives usage.

regards
SK

©2008 apache-httpd.com - Jax Systems, LLC, U.S.A.