Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

You will be creating a Bash script that will accept two arguments, a username and password. If the proper username and password is input, display

You will be creating a Bash script that will accept two arguments, a username and password. If the proper username and password is input, display the home directory and terminal type. If the input is incorrect, allow them to re-enter the information. After 3 failed attempts, inform the user that they do not have access to this information. If no information is passed, prompt the user for the information.
First start by creating a flowchart that accurately depicts the logic for this script.
Put this flowchart in the appendix of your paper.
Next, using the server that you stood up in Part 1 or create a new server on A Cloud Guru.
Create a .bash_profile
Create a directory for your Bash scripts
Create the Bash script based on your flowchart
Grant execute permissions to that file
Execute the script with the correct information passed
Execute the script with NO information passed
Execute the script with the WRONG information passed

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access with AI-Powered 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

Students also viewed these Databases questions