2022-03-24 11:20:51 +01:00

10 lines
154 B
Bash
Executable File

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