sun.com | docs.sun.com |  | How To Buy | My Sun | Worldwide Sites |

A B C D E F G H I J K L M N O P Q R S T U V W X Y Z

Application Server Utility | htpasswd(1m)

- NAME
- SYNOPSIS
- DESCRIPTION
- OPTIONS
- EXAMPLES

## NAME

> htpasswd - creates the user authentication files

## SYNOPSIS

> `htpasswd` [-c] `passwdfile username`

## DESCRIPTION

> Use the `htpasswd` utility to create the flat-files that store usernames and password for basic authentication of HTTP users. If `htpasswd` cannot access a file, such as not being able to write to the output file or not being able to read the file, it returns an error status and makes no changes.

## OPTIONS

> -c

>   creates the `passwdfile`. If the `passwdfile` already exists, it is rewritten and truncated.

> passwdfile

>   name of the file to contain the username and password.

> username

>   the username to create in the `passwdfile`. If the username does not exist in this file, an entry is added. If it does exist, the password is changed.

## EXAMPLES

> >     htpasswd -c myauthen scott

Sun Java System Application Server | Go To Top | Last Changed 29 Dec 2003

Company Info | Contact | Copyright 2004 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms.