#!/bin/ash
#
#
 if [ x$1 = x ]; then
   echo "Usage: htpasswd username"
   exit
 fi
 . /usr/sbin/thttp.d >/dev/null 2>&1
 echo "Managing passwords for the 'private' directory:"
 echo ""
 thtpasswd $DIR/private/.htpasswd $1
 chmod 644 $DIR/private/.htpasswd