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>.

Debian Debian
RUN apt-get update && \ apt-get install -y apache2-utils
Ubuntu
RUN apt-get update && \ apt-get install -y apache2-utils
Alpine
RUN apk add apache2-utils
Arch Arch Linux
RUN pacman -S --noconfirm apache
image/svg+xml Kali Linux
RUN apt-get update && \ apt-get install -y apache2-utils
CentOS
RUN yum install -y httpd-tools
Fedora
RUN dnf install -y httpd-tools
Raspbian
RUN apt-get update && \ apt-get install -y apache2-utils
click the source code to copy install htpasswd on any operating system with command-not-found.com