Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Open the terminal and using vi/vim create a new script and name it lab9.txt Insert at the top of your file a comment with

image text in transcribed

Open the terminal and using vi/vim create a new script and name it lab9.txt Insert at the top of your file a comment with your name, class and section number (e.g. #John Doe, EMT 2390L - ABC123). This lab will help a user determine the permissions in a user-friendly way. In your script named lab9 do the following: Show the user the following questions to get the right permissions for the owner, the group, and the world: Do you want to grant read permissions (y/n)? Do you want to grant write permissions (y/n)? Do you want to grant execute permissions (y/n)? Show the appropiate permission in Octal notation according to the following table: B Octal Binary 000 File Mode 1 001 --X 23 010 -W- 011 -WX 4 100 r -- 5 101 r-x 6 110 rw- 7 111 rwx . Your script should then display to the user the appropriate octal number permission based on the user selection. e.g. if the user chose read, write and execute for the owner; read and execute for the group; read and execute for the world; your script will show: 755 e.g. if the user chose read, write and execute for the owner; read and write for the group; read only for the world; your script will show: 764 8:53 PM

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

Fundamentals of Materials Science and Engineering An Integrated Approach

Authors: David G. Rethwisch

4th Edition

1118214226, 1118061608, 9781118214220, 978-1118061602

More Books

Students also viewed these Mechanical Engineering questions

Question

What is job rotation ?

Answered: 1 week ago