Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Let us suppose that we have the file: /home/alice/public_html/index.cgi which is

ID: 3885348 • Letter: L

Question

Let us suppose that we have the file: /home/alice/public_html/index.cgi which is a program, and which is owned by the user 'alice', and by the group 'team' that contains users 'alice', 'bob', and 'charlie'. The following users also use the system: 'dan' ed', and 'fred'. The ownerships and permissions of the files in the path are: Beside the group 'team' that was described, the group 'root' contains only the user 'root' and the team 'alice' contains only the user 'alice'. Which users of the system should be able to read, modify, or execute the program index.cgi? You do not need to consider the user 'root'. Explain your answer.

Explanation / Answer

File Permissions:

Let us observe the permissions of program index.cgi:

   rw-r-xr--
  
   Let us divide the permissions in to three parts(starting from left to right with three characters in each part):
  
   (1) rw-
      
       This part provides the permissions for Owner. Owner of the file is alice.
      
       So user 'alice' will have read and write permissions on the program index.cgi
      
   (2) r-x
      
       This part provides the permissions for Group. Members in the group other than Owner of the file are 'bob' and 'charlie'.
      
       So users of the group team 'bob' and 'charlie' can read and execute the program.
      
   (3) r--
  
       This part provides the permissions for others. Others who are using system are 'dan', 'ed' and 'fred'.
      
       So other users of the system 'dan', 'ed', 'fred' can only read the program.
       

User Group Other Read Yes Yes Yes Write Yes No No Execute No Yes No