Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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)

image text in transcribed

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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Professional Microsoft SQL Server 2012 Administration

Authors: Adam Jorgensen, Steven Wort

1st Edition

1118106881, 9781118106884

More Books

Students also viewed these Databases questions

Question

Did you include SEC required financial data?

Answered: 1 week ago