Due In class, at start of class, 6 July 2006
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 suceeded. 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 indentify the command and permission combination that failed and write down the error message on a seperate sheet of paper. If the command suceeds, 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 directores 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 behaviour of the last 4 commands ( the rm -r and rmdir commands ) seperately from the others.