Bookmark this page

Quiz: Interpreting Linux File System Permissions

Review the following information and use it to answer the quiz questions.

The system has four users assigned to the following groups:

  • User consultant1 is in groups consultant1 and database1

  • User operator1 is in groups operator1 and database1

  • User contractor1 is in groups contractor1 and contractor3

  • User operator2 is in groups operator2 and contractor3

The current directory (.) contains four files with the following permissions information:

drwxrwxr-x.   operator1     database1     .
-rw-rw-r--.   consultant1   consultant1   lfile1
-rw-r--rw-.   consultant1   database1     lfile2
-rw-rw-r--.   operator1     database1     rfile1
-rw-r-----.   operator1     database1     rfile2
  1. 1.

    Which regular file is owned by operator1 and readable by all users?

    A

    lfile1

    B

    lfile2

    C

    rfile1

    D

    rfile2

  2. 2.

    Which file can be modified by the contractor1 user?

    A

    lfile1

    B

    lfile2

    C

    rfile1

    D

    rfile2

  3. 3.

    Which file cannot be read by the operator2 user?

    A

    lfile1

    B

    lfile2

    C

    rfile1

    D

    rfile2

  4. 4.

    Which file has a group ownership of consultant1?

    A

    lfile1

    B

    lfile2

    C

    rfile1

    D

    rfile2

  5. 5.

    Which files can be deleted by the operator1 user?

    A

    rfile1

    B

    rfile2

    C

    All of the above.

    D

    None of the above.

  6. 6.

    Which files can be deleted by the operator2 user?

    A

    lfile1

    B

    lfile2

    C

    All of the above.

    D

    None of the above.

Revision: rh124-8.2-df5a585