ajout user doku
This commit is contained in:
9
sio1/sisr1/40-Shell/dau.sh
Executable file
9
sio1/sisr1/40-Shell/dau.sh
Executable 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"
|
Reference in New Issue
Block a user