Compare commits
2 Commits
Author | SHA1 | Date | |
---|---|---|---|
f13393316d | |||
3ba2ed5140 |
@ -9,5 +9,6 @@ if [ ! "$1" ] ; then
|
||||
fi
|
||||
|
||||
# chiffremment du mot de passe $1 avec bcrypt
|
||||
hashpass=$(htpasswd -bnBC 10 "" "${1}"|tr -d '\d')
|
||||
echo "${1}${hashpass}:${1}:${1}@localhost:${1},user"
|
||||
hashpass=$(htpasswd -bnBC 10 "$1" "$1")
|
||||
|
||||
echo "${hashpass}:${1}:${1}@localhost:${1},user"
|
||||
|
11
ap23/script/dau2.sh
Executable file
11
ap23/script/dau2.sh
Executable file
@ -0,0 +1,11 @@
|
||||
#!/bin/bash
|
||||
|
||||
set -e
|
||||
set -u
|
||||
|
||||
|
||||
./dau.sh anthony >> /var/www/html/dokuwiki/conf/users.auth.php
|
||||
./dau.sh rayan >> /var/www/html/dokuwiki/conf/users.auth.php
|
||||
./dau.sh mathis >> /var/www/html/dokuwiki/conf/users.auth.php
|
||||
./dau.sh lucas >> /var/www/html/dokuwiki/conf/users.auth.php
|
||||
./dau.sh adrien >> /var/www/html/dokuwiki/conf/users.auth.php
|
Reference in New Issue
Block a user