Bash Utilisateur

This commit is contained in:
“Louis 2022-03-31 10:08:40 +02:00
parent f933da8552
commit 2a7e7cb3d2

8
ap22/dau Executable file

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