Answered step by step
Verified Expert Solution
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
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
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