htpasswd
Create and manage htpasswd files to protect web server directories using basic authentication. More information: https://httpd.apache.org/docs/current/programs/htpasswd.html.
- Create/overwrite htpasswd file:
htpasswd -c
- Add user to htpasswd file or update existing user:
htpasswd
- Add user to htpasswd file in batch mode without an interactive password prompt (for script usage):
htpasswd -b
- Delete user from htpasswd file:
htpasswd -D
- Verify user password:
htpasswd -v
- Display a string with username (plain text) and password (MD5):
htpasswd -nbm
来源:tldr-pages contributors · 作者与贡献记录 · CC BY 4.0。离线整理了版式、链接和媒体显示。
