ajout user doku

This commit is contained in:
elam monnot 2022-03-24 11:20:51 +01:00
parent 396f476835
commit db0726c442

9
sio1/sisr1/40-Shell/dau.sh Executable file
View File

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