Print out the worksheet.
1. Make 330 your current working directory, within 330, make a ws directory, and make that your current working directory.
2. Create the following directory files - dir1, dir2, dir3 and dir4
3. Create the files f1 and f2 in the 330 directory. Use the following command sequence.
mkdir dir1 dir2 dir3 dir4 ls > f1 cp f1 f2 touch dir1/fs1 dir1/fs2 dir3/fs1 dir3/fs2 |
5.a. In the table above there are a series of commands list down the left hand side and a series of permissions across the top. For this assignment, you are to set owner(user) permissions of the four directories dir1 dir2 dir3 and dir4 to those listed above the first permissions column and then attempt each command listed in the command column. Set group and other's permissions to none.
5.b. For each row of worksheet, run the command at the left. In the box to the right in that row, record whether the command failed or succeeded. A failure will be signaled by an error message from the system. If the command fails, write failed in the box, also use the number in the box to identify the command and permission combination that failed and write down the error message on on the back of the worksheet. If the command succeeds, write success in the box.
6. When you have finished the first column, change all directory permissions
to 700. Run the commands
7. Now set owner permissions of all four directories to permissions listed above second permissions column and repeat commands listed down the left hand side, recording results and failure messages in the 2nd permissions column on the appropriate line.
8. Repeat step 6. and set owner permissions of all directories to permissions listed above the last permissions column. Repeat commands and record results.
9. When done, look at the failures in each of the permission columns and give a general explanation on how and why a particular permission influences the various file commands. Analyze the behavior of the last 4 commands ( the rm -r and rmdir commands ) separately from the others.