IT/Software/Server Config/Apache/Passwords: Difference between revisions

From msgwiki
< IT‎ | Software‎ | Server Config‎ | Apache
Jump to navigation Jump to search
Access restrictions were established for this page. If you see this message, you have no access to this page.
No edit summary
No edit summary
Line 6: Line 6:
=== register the user and password to apache ===
=== register the user and password to apache ===
The first time you need to create the file if it doesn't exist
The first time you need to create the file if it doesn't exist
<code>sudo htpasswd -c /path/tosecrets/file/name.ext user</code>


We recommend a location other than the default and in a location other than the default.
We recommend a location other than the default and in a location other than the default.


sudo htpasswd /usr/local/apache/passwd/passwords msg2013student
<code>sudo htpasswd /usr/local/apache/passwd/passwords msg2013student</code>


This will modify the password for that user if he/she exists.
This will modify the password for that user if he/she exists.

Revision as of 06:02, 26 December 2020

General

These are passwords that are stored for webapps like webdav and secure folders.

from the Apache website

register the user and password to apache

The first time you need to create the file if it doesn't exist

sudo htpasswd -c /path/tosecrets/file/name.ext user

We recommend a location other than the default and in a location other than the default.

sudo htpasswd /usr/local/apache/passwd/passwords msg2013student

This will modify the password for that user if he/she exists.

If they don't exist in Apache it will create the user and add the password.

It will prompt you for a password. You will not see it. Type twice to verify

To delete a user

sudo htpasswd -D /usr/local/apache/passwd/passwords msg2013student

To make or update a password and see it visibly as you enter it.

sudo htpasswd -b /etc/apache2/passwords uri uri