Question: Change Permission for All Directory. Write a shell script chmodAllDirectories, that will change the permission of all directories inside a given leading directory. The command

Change Permission for All Directory. Write a shell script chmodAllDirectories, that will change the permission of all directories inside a given leading directory. The command chmodAllDirectories newpermission maindirecroty should set a new permission to all directories inside a given leading directory. The script should set a new permission for all directories inside the given directory. If there is no argument, or if the maindirecroty is not a directory or the given permission is not supported, the script should print an error message to stderr and exit. by using for loop in linux script shell

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!