Bookmark this page

Quiz: Interpret Linux File System Permissions

Interpret Linux File System Permissions

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

The system has four users that are assigned to the following groups:

• The consultant1 user is a member of the consultant1 and database1 groups.

• The operator1 user is a member of the operator1 and database1 groups.

• The contractor1 user is a member of the contractor1 and contractor3 groups.

• The operator2 user is a member of the operator2 and contractor3 groups.

The . special directory contains four files with the following permissions:

drwxrwxr-x.   operator1     database1     .
-rw-rw-r--.   consultant1   consultant1   app1.log
-rw-r--rw-.   consultant1   database1     app2.log
-rw-rw-r--.   operator1     database1     db1.conf
-rw-r-----.   operator1     database1     db2.conf

Choose the correct answers to the following questions:


  1. 1.

    Which regular file does the operator1 user own and all users can read?

    A

    app1.log

    B

    app2.log

    C

    db1.conf

    D

    db2.conf

  2. 2.

    Which file can the contractor1 user modify?

    A

    app1.log

    B

    app2.log

    C

    db1.conf

    D

    db2.conf

  3. 3.

    Which file can the operator2 user not read?

    A

    app1.log

    B

    app2.log

    C

    db1.conf

    D

    db2.conf

  4. 4.

    Which file does the consultant1 group own?

    A

    app1.log

    B

    app2.log

    C

    db1.conf

    D

    db2.conf

  5. 5.

    Which files can the operator1 user delete?

    A

    Only db1.conf

    B

    Only db2.conf

    C

    All the files in the directory

    D

    None of the files

  6. 6.

    Which files can the operator2 user delete?

    A

    Only app1.log

    B

    Only app2.log

    C

    Both app1.log and app2.log

    D

    None of the files

Revision: rh124-9.3-770cc61