usergen: Do not print password to tty
This commit is contained in:
parent
9c7a2e9128
commit
83b00b2cda
5
usergen
5
usergen
|
@ -31,8 +31,13 @@ then
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
TTYCFG=$(stty -g)
|
||||||
|
trap "stty $TTYCFG" INT QUIT TERM EXIT
|
||||||
|
stty -echo
|
||||||
echo Password: >&2
|
echo Password: >&2
|
||||||
IFS= read -r PWD
|
IFS= read -r PWD
|
||||||
|
stty echo
|
||||||
|
|
||||||
echo "Quota, in MiB (leave empty for unlimited quota):" >&2
|
echo "Quota, in MiB (leave empty for unlimited quota):" >&2
|
||||||
read -r QUOTA
|
read -r QUOTA
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue