Question: Create a simple user registration bash script. You need to get the username and password from the user. After that, display the username and password
Create a simple user registration bash script. You need to get the username and password from the user. After that, display the username and password keyed in to verify you inserted the data correctly to the variables.
Make sure when the user enters the password, nothing is shown on screen. This is to prevent shoulder surfing (obtaining the password by overlooking the users shoulder).
Also if the user still has not keyed in a password within 5 seconds, the script should time out as shown below.
(Note: Try using help read instead of man read to view details about the read command) (Note 2: To scroll the help read command try typing help read | less instead. Then use the down and up arrow keys to browse, q to quit)

Create a simple user registration bash script. You need to get the username and password from the user. After that, display the username and password keyed in to verify you inserted the data correctly to the variables. Make sure when the user enters the password, nothing is shown on screen. This is to prevent shoulder surfing (obtaining the password by overlooking the user's shoulder). Enter username: roy Enter password: UID: roy PwD: 123 Also if the user still has not keyed in a password within 5 seconds, the script should time out as shown below. Enter username: roy Enter password: UID: ray PWD: invalid (timed out) (Note: Try using help read instead of man read to view details about the read command) (Note 2: To "scroll" the help read command... try typing help read less instead. Then use the down and up arrow keys to browse, q to quit)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
