</blockquote>
*Option 2: Perform the following steps [[Open_Terminal_as_root|as root user]]:
<blockquote>
{{Code|htpasswd -c -b .htpasswd username password}}
*To add additional users, repeat the previous step (('''NOTE:''' the -c option is only needed the first time you create the file for that web application):
{{Code|htpasswd -b .htpasswd username password}}
*Copy the <code>.htpasswd</code> file to the web application path (i.e. /var/hda/web-apps/appname).
</blockquote>
==== Set the file permissions: ====