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
Get step-by-step solutions from verified subject matter experts
