mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-08-04 07:55:33 +02:00
htpasswd: add page
This commit is contained in:
parent
2df0d27495
commit
fc981c2116
1 changed files with 23 additions and 0 deletions
23
pages/common/htpasswd.md
Normal file
23
pages/common/htpasswd.md
Normal file
|
@ -0,0 +1,23 @@
|
|||
# htpasswd
|
||||
|
||||
> Create and manage htpasswd files to protect web server directories using basic authentication.
|
||||
|
||||
- Create/overwrite htpasswd file:
|
||||
|
||||
`htpasswd -c {{file_path}} {{user_name}}`
|
||||
|
||||
- Add user to htpasswd file or update existing user:
|
||||
|
||||
`htpasswd {{file_path}} {{user_name}}`
|
||||
|
||||
- Add user to htpasswd file without password verification (for script usage):
|
||||
|
||||
`htpasswd -b {{file_path}} {{user_name}} {{password}}`
|
||||
|
||||
- Delete user from htpasswd file:
|
||||
|
||||
`htpasswd -D {{file_path}} {{user_name}}`
|
||||
|
||||
- Verify user password:
|
||||
|
||||
`htpasswd -v {{file_path}} {{user_name}}`
|
Loading…
Add table
Reference in a new issue