PATH="/usr/local/sbin:/usr/local/bin:/bin:/sbin:/usr/bin:/usr/sbin"
export PATH

. which_user  # sets $user and $home, will exit if borked
. user_info   # sets other variables

dir="/var/www/$user/my"
[ -e "$dir" ] || exit

echo -n "my"

passwd_file="$dir/.htpasswd"
htpasswd2 -b "$passwd_file" "$user" "$password" >/dev/null 2>&1

echo " (private web space)."

