blob: 81157161c2ebba249fbf284794fdd513b2e7dd6c (
plain)
1
2
3
4
5
6
7
8
9
10
|
#!/bin/sh
# getpw -- read password
printf 'Enter password: ' > /dev/tty
stty -f /dev/tty -echo
read PASSWORD < /dev/tty
stty -f /dev/tty echo
echo > /dev/tty
echo "$PASSWORD"
|