0
0
Fork 0
mirror of https://github.com/atmoz/sftp.git synced 2024-11-24 12:59:24 -05:00

Random password is never encrypted

This commit is contained in:
Adrian Dvergsdal 2014-10-21 10:49:11 +02:00
parent 60ab7d2f4f
commit 6fc38cf3f3

1
run
View file

@ -31,6 +31,7 @@ for users in "$@"; do
if [ -z "$pass" ]; then
pass="$(echo `</dev/urandom tr -dc A-Za-z0-9 | head -c256`)"
chpasswdParams=""
fi
echo "$user:$pass" | chpasswd $chpasswdParams