[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Secure way to prompt for username/password from script



On Fri, Dec 03, 2004 at 06:49:37PM -0500, William Ballard wrote:
> Currently when I need to pass a password to a script I log into sash 
> first since it doesn't keep history.
> 
> Is there a better way to read a username password into a shell variable?

maybe:

read -s pass
echo $pass



Reply to: