'''NOTE:''' The one-click [https://www.amahi.org/apps/web-apps Web Apps] will provide this capability in Amahi 7 or greater.</div>
Would you like to control which HDA users can access certain web applications? This can be easily done in Amahi 6. To use this function, select the web apps section in the apps tab. Expand the desired app and select the '''Require login''' check box. If selected, this settings makes it such that the application will ask for a user name and a password. The perform the steps below to create the <code>htpasswd</code> file.
==== Create the htpasswd File ====
There are two options for creating the <code>htpasswd</code> file:
*Option 1: Navigate to [http://www.webmaster-toolkithtaccesstools.com/htaccesshtpasswd-generator.shtml .htaccess / htpasswd Generator].
<blockquote>
*Enter desired Username, Password, and Path (physical location where <code>.htpasswd</code> will be stored). For example, Username '''''amahi''''', Password '''''amahi''''', and Path '''''/var/hda/web-apps'''''.
*Select the '''Generate .htaccess''' button.
*Copy the text from ''"And this is what your .htpasswd file should look like..."'' box and paste it into the <code>.htpasswd</code> file. It should look similar to this:
{{Text|<pre>amahi:amb24e1pXrqFY}}</pre>
*Proceed to the '''Copy and Set File Permissions''' section to complete.
</blockquote>
<blockquote>
*Create the <code>htpasswd</code> file (change username and password):
*Proceed to the '''Copy and Set File Permissions''' section to complete.
</blockquote>
==== User Maintenance (Add/Delete) ====
*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):
'''NOTE:''' After you have completed this process using Webmin you can then select ''"un-protect selected directory" '' and use the HDA-Dashboard to enable/disable password protection.