On this page you find all important commands for the CLI tool htpasswd. If the
command you are looking for is missing please ask our AI.
htpasswd
- htpasswd is a command line tool used for managing passwords in Apache web servers.
- It is typically used to generate and update the password file used for basic authentication.
- The tool is available on most Unix-like systems, including Linux and macOS.
- htpasswd uses a cryptographic hash function (MD5, SHA, or crypt) to securely store user credentials.
- It allows administrators to create and modify usernames and their associated encrypted passwords.
- The generated password file can be used by Apache to authenticate users when accessing protected directories on a website.
- Users' passwords are never stored in plain text but are highly encrypted to protect them from unauthorized access.
- The tool supports various options, including adding or deleting users, changing passwords, and setting encryption algorithms.
- htpasswd can be run interactively, prompting for input, or used non-interactively with command line arguments.
- It is a fundamental tool for securing web applications and controlling access to sensitive content.
List of commands for htpasswd:
-
htpasswd:tldr:31839 htpasswd: Add user to htpasswd file in batch mode without an interactive password prompt (for script usage).$ htpasswd -b ${filename} ${username} ${password}try on your machineexplain this command
-
htpasswd:tldr:408a0 htpasswd: Create/overwrite htpasswd file.$ htpasswd -c ${filename} ${username}try on your machineexplain this command
-
htpasswd:tldr:76ca5 htpasswd: Add user to htpasswd file or update existing user.$ htpasswd ${filename} ${username}try on your machineexplain this command
-
htpasswd:tldr:bef93 htpasswd: Delete user from htpasswd file.$ htpasswd -D ${filename} ${username}try on your machineexplain this command
-
htpasswd:tldr:d6b63 htpasswd: Display a string with username (plain text) and password (md5).$ htpasswd -nbm ${username} ${password}try on your machineexplain this command
-
htpasswd:tldr:fdeee htpasswd: Verify user password.$ htpasswd -v ${filename} ${username}try on your machineexplain this command