>

Assignment 3A    30 points     
Due in drop box   - Close of lab.

Because these are written assignments, they must be in the drop box on time.

 

Permissions for user

----------------------

--------------------------------

--------------------------------

--------------------------------

Commands

rw-

-wx

r-x

  • cd dir1
  • 11 12 13
    • cd $HOME/330
  • ls dir1
  • 21 22 23
  • cat dir1/b
  • 31 32 33
  • cp dir1/b c
  • 41 42 43
  • mv a dir1/c
  • 51 52 53
  • rm dir1/b
  • 61 62 63
  • rmdir dir1
  • 71 72 73
  • rm -r dir3
  • 81 82 83
  • rmdir dir2
  • 91 92 93
  • rm -r dir4
  • A1 A2 A3

    Note:  for all three parts of this assignment, you are to print out the 
    web pages and fill in the information.  There is nothing to email your 
    TA.  However, it also means that the assignment must be in the drop box
    by the due date and time. 
    
    1.  Change to your 330 directory.
    2.  Make the following directories   dir1, dir2, dir3 and dir4
    3.  Make the file  a  in the 330 directory.  Use touch to create a file.   
         touch a
    4.  In both dir1 and dir3, make the file b.  Use touch again  
         touch dir1/b; touch dir3/b
    
    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. 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.  You must now recreate/uncreate any files/directories changed in step
    5.  e.g. Recreate any directories deleted, delete c from 330 directory if 
    copy was successful, recreate file a, recreate dir1/b and dir3/b    
    
    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.