[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Htpasswd help?



On Thu, Jun 12, 2003 at 03:35:36PM +0800, Miranda, Joel Louie M wrote:
> Im trying to make a shell script but I could not get this one done.
> Im using htpasswd to generate a file, user and password.
> 
> Here is my syntax..
> 
> -----------------
> web:/var/www-development/genpass# htpasswd -cd site.pass cust pass
> Usage:
>         htpasswd [-cmdps] passwordfile username
>         htpasswd -b[cmdps] passwordfile username password
> 
>         htpasswd -n[mdps] username
>         htpasswd -nb[mdps] username password
[...]
>  -b  Use the password from the command line rather than prompting for it.

As that usage message implies, if you're specifying the password on the
command line then you need to use the -b option.

Cheers,

-- 
Colin Watson                                  [cjwatson@flatline.org.uk]



Reply to: