Answered step by step
Verified Expert Solution
Link Copied!

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

image text in transcribed

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

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

Essentials of Database Management

Authors: Jeffrey A. Hoffer, Heikki Topi, Ramesh Venkataraman

1st edition

133405680, 9780133547702 , 978-0133405682

More Books

Students also viewed these Databases questions