SUMMARY: Not echoing the password

From: Tran, Duc-Chi <tranduc_at_statcan.ca>
Date: Thu, 01 Oct 1998 16:34:00 -0400

Thank you for many people who have answered. The solution is:

     stty -echo
     read USER_PASSWORD
     stty echo
 ----------
From: Tran, Duc-Chi
To: alpha-osf-managers
Subject: Not echoing the password
Date: October 01, 1998 10:21PM

Hi,

I am writing a ksh script which prompts the user to enter a password (with
the read command). I do not want the password printed on the terminal when
the user is keying it. What can I do? Thanks.

Duc-Chi Tran
Statistics Canada
Received on Thu Oct 01 1998 - 20:16:18 NZST

This archive was generated by hypermail 2.4.0 : Wed Nov 08 2023 - 11:53:38 NZDT