% make htpasswd
htpasswd now links, and we can set it to work.
Since we don't know how it functions, the obvious thing is to
prod it with:
% htpasswd -?
It responds that the correct usage is:
htpasswd [-c] passwordfile username
The -c flag creates a new file
This seems perfectly reasonable behavior, so let's create a
user bill with the password "theft" (in
real life, you would never use so obvious a password for such a
character as Bill of the notorious Butterthlies sales team, because
it would be subject to a dictionary attack, but this is not real
life):
% htpasswd -c ... /ok_users/sales bill
We are asked to type his password twice, and the job is done. If we
look in the password file, there is something like the following:
bill:$1$Pd$E5BY74CgGStbs.L/fsoEU0
Add subsequent users (the -c flag creates a new
file, so we shouldn't use it after the first one):
% htpasswd ... /ok_users/sales ben
Carry on and do the same for sonia and
daphne. We gave them all the same password,
"theft," to save having to remember different ones later.