mirror of
https://github.com/atmoz/sftp.git
synced 2024-11-17 12:51:33 -05:00
Random password is never encrypted
This commit is contained in:
parent
60ab7d2f4f
commit
6fc38cf3f3
1 changed files with 1 additions and 0 deletions
1
run
1
run
|
@ -31,6 +31,7 @@ for users in "$@"; do
|
||||||
|
|
||||||
if [ -z "$pass" ]; then
|
if [ -z "$pass" ]; then
|
||||||
pass="$(echo `</dev/urandom tr -dc A-Za-z0-9 | head -c256`)"
|
pass="$(echo `</dev/urandom tr -dc A-Za-z0-9 | head -c256`)"
|
||||||
|
chpasswdParams=""
|
||||||
fi
|
fi
|
||||||
|
|
||||||
echo "$user:$pass" | chpasswd $chpasswdParams
|
echo "$user:$pass" | chpasswd $chpasswdParams
|
||||||
|
|
Loading…
Reference in a new issue