You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by sakthi v <li...@gmail.com> on 2008/05/16 16:58:52 UTC

[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

Re: [users@httpd] htpasswd

Posted by sakthi v <li...@gmail.com>.
Thanks.. it is done!

On Fri, May 16, 2008 at 8:39 PM, Luis Moreira <lu...@esi.pt> wrote:

>  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
>
>

RE: [users@httpd] htpasswd

Posted by Luis Moreira <lu...@esi.pt>.
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




Re: [users@httpd] htpasswd

Posted by Eric Covener <co...@gmail.com>.
On Fri, May 16, 2008 at 10:58 AM, sakthi v <li...@gmail.com> wrote:
> 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

As the usage implies, you have to pass a username even when you're
creating a new file.


-- 
Eric Covener
covener@gmail.com

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] htpasswd

Posted by Harry Holt <ha...@gmail.com>.
htpasswd -c passwdfile newuser1

On Fri, May 16, 2008 at 10:58 AM, sakthi v <li...@gmail.com> wrote:
> 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
>
>
>



-- 
Harry Holt, PMP

Idealism is what precedes experience; cynicism is what follows.
 - David T. Wolf

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org