2022-03-31 10:08:40 +02:00

9 lines
138 B
Bash
Executable File

#!/bin/bash
set -e
set -u
login=$1
password=$(htpasswd -bnBC 10 "$1" "$1")
echo "${password}:${login}:${login}@localhost:${login},user"