Question: 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

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 None

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!