| Permissions for user | |||
|---|---|---|---|
| Commands | rw- --- --- | -wx --- --- | r-x --- --- |
| 11 | 12 | 13 | |
|
|||
| 21 | 22 | 23 | |
| 31 | 32 | 33 | |
| 41 | 42 | 43 | |
| 51 | 52 | 53 | |
| 61 | 62 | 63 | |
| 71 | 72 | 73 | |
| 81 | 82 | 83 | |
| 91 | 92 | 93 | |
| a1 | a2 | a3 | |
| b1 | b2 | b3 | |
| c1 | c2 | c3 | |
| d1 | d2 | d3 | |
| e1 | e2 | e3 | |
Note: for all three parts of this assignment, you are to print out the web pages and fill in the information.
1. Make 330 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.
5.b. In each box, 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 a separated sheet of paper. 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.
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.