Answered step by step
Verified Expert Solution
Question
1 Approved Answer
UNIX and Shell Programming Session V Create a script that can be executed only from a spe cific terminal. This is done for be exe
UNIX and Shell Programming
Session V Create a script that can be executed only from a spe cific terminal. This is done for be exe security purposes. For example, a superuser may write scripts that can only cuted from his or her office and nowhere else Preparation None Script . Script Name: security.scr . Arguments: None e Validation: The minimum validation requirement is: . Ensure that no arguments are entered. . Body Section: Create a script that prints a friendly message. However, the script can be executed only from one terminal. You can use the name of the terminal you are using when you write the script. If somebody uses the script from a terminal that is not authorized, the script is to exit immediately. Hint: Use the tty command to show your current terminal. Testing the Script 1. Test the script with one argument 2. Test the script from the right terminal. 3. Log into the system using another terminal and test the script. Testing the Effect of the Script NoneStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started