Question: Problem : You are new to the Linux world and want to make sure that the input received is in correct octal format for the

Problem: You are new to the Linux world and want to make sure that the input received is in correct octal format for the chmod permissions command. The octal number system using values 0 to 7. The chmod command accepts three octal numbers to set the permission values.

Procedure: read in the 3 digits from the user for the octal permission command, check if each digit is within the range and then state if those three numbers make a valid octal number for the chmod command.

Example: 0 6 3 yes, 063 is a valid octal number for the chmod command

9 0 2 no, 902 is not a valid octal number

____________________________________________________________________________________________________

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!