diff options
Diffstat (limited to 'src/getpw')
-rwxr-xr-x | src/getpw | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/getpw b/src/getpw new file mode 100755 index 0000000..8115716 --- /dev/null +++ b/src/getpw @@ -0,0 +1,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" |