#!/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"