htpasswd
Differences
This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
| htpasswd [2015/12/14 17:29] – created luke7858 | htpasswd [2024/05/23 07:26] (current) – external edit 127.0.0.1 | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| - | You can use the htpasswd command to create username and encrypted password for .htpasswd files: | + | You can use the htpasswd command to create username and encrypted password for .htpasswd files. |
| \\ | \\ | ||
| + | **__Note__: | ||
| + | \\ | ||
| + | |||
| \\ | \\ | ||
| -c = Create the passwdfile. If passwdfile already exists, it is rewritten and truncated. This option cannot be combined with the -n option. | -c = Create the passwdfile. If passwdfile already exists, it is rewritten and truncated. This option cannot be combined with the -n option. | ||
| + | \\ | ||
| + | \\ | ||
| + | == Updating file with new user == | ||
| + | <sxh bash> | ||
| + | htpasswd / | ||
| + | </ | ||
| + | You will then be prompted to enter a password that will be encrypted | ||
| + | \\ | ||
| + | |||
| + | \\ | ||
| + | == Creating new file == | ||
| <sxh bash> | <sxh bash> | ||
| - | htpasswd -c /path/to/file/.htpasswd | + | htpasswd -c /new/ |
| </ | </ | ||
| + | You will then be prompted to enter a password that will be encrypted | ||
htpasswd.1450114169.txt.gz · Last modified: 2024/05/23 07:26 (external edit)
