Below are the commands used to:

  1. Create the .htpasswd file.
  2. Generate an encrypted password for jsmith.
  3. Add the additional users jdoe, student1, student2, and student3.

[aegis]{~/public_html}{21}-> htpasswd -c .htpasswd jsmith
Adding password for jsmith.
New password:
Re-type new password:
[aegis]{~/public_html}{22}-> htpasswd .htpasswd jdoe
Adding user jdoe
New password:
Re-type new password:
[aegis]{~/public_html}{23}-> htpasswd .htpasswd student1
Adding user student1
New password:
Re-type new password:
[aegis]{~/public_html}{24}-> htpasswd .htpasswd student2
Adding user student2
New password:
Re-type new password:
[aegis]{~/public_html}{25}-> htpasswd .htpasswd student3
Adding user student3
New password:
Re-type new password:
[aegis]{~/public_html}{26}-> more .htpasswd
jsmith:S7rs4LsH12IW6
jdoe:jgH5apXpstfeI
student1:YLZzy24Wj6.TU
student2:eZS2km505lf1s
student3:v6K.GwpzbtaMk

Note that the passwords added to the .htpasswd file are shown in their encrypted form.