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...

1 answer below »

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 an Ubuntu 16 Server



● 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



For each of these steps include a screenshot.



In a minimum 1-page Microsoft Word document, combine the above information with the following:



● Describe how you determined your logical flow for the script.


● Explain how easy or difficult it was to create the script, set permissions, debug, and run.


● Place the completed script in the appendix of your paper.

Answered Same DayMar 31, 2021

Answer To: You will be creating a Bash script that will accept two arguments, a username and password. If the...

Sandeep Kumar answered on Mar 31 2021
149 Votes
SCREENSHOTS
1: Create a .bash_profile
2: Create a directory for your Bash scripts
3: Create the b
ash file
4: Grant execute permissions to that file
CASE 1: CORRECT USERNAME AND PASSWORD:
CASE 2: BLANK USERNAME AND PASSWORD:
CASE 3: INCORRECT USERNAME AND PASSWORD
LOGICAL FLOW
The logical flow of the bash script was elementary. It involved simple do while loops. And an equivalent of a function ‘goto’ in C. The entire function was created and used in order...
SOLUTION.PDF

Answer To This Question Is Available To Download

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here