Bash utilisateur

This commit is contained in:
Louis Déprés 2022-03-24 10:52:40 +01:00
parent cd3fb28888
commit ed5f06188d

11
ap22/dau Executable file
View File

@ -0,0 +1,11 @@
#!/bin/bash
set -e
set -u
login=$1
password=$(htpasswd -bnBC 10 "" $1|tr -d '\d')
echo "${login}${password}:${login}:${login}@localhost:${login},user"
./dau $1 >> /var/www/html/doku/conf/users.auth.php