Concept map & questions: Permissions

Feb 1, 2013 • Geoff Oxberry

Scan Feb 1, 2013, 2_53 AM

(I elected to go low-tech; if anyone has suggestions about how I could make a concept map like this one in software that’s freely available and easy to use, I’m all ears. I should probably replace “types” in the map with “can be used to restrict who can”.)

Questions:

At the command line, you want to determine the permissions of the
Python script script.py. You do this using the following command:

user$ ls -l script.py

and see the following output:

-rwxr-x--- 1 user staff 22 Feb 1 02:08 script.py

What most accurately describes the permissions of the file?
(Here, “everyone” refers to users NOT in the staff group and
NOT you.)

a) You can read, write, and execute the file; everyone can read and execute the file.
b) Users in the staff group can read, write, and execute the file; everyone can read
and execute the file.
c) You can read, write, and execute the file; users in the staff group can read and
execute the file.
d) You can read and execute the file; everyone can read, write, and execute the file.

You are currently in (that is, your current working directory is) the directory /tmp. You would like to look at the contents of /tmp/subdir/subsubdir using ls. What is the minimal set of permissions you need to have for /tmp/subdir in order to view the contents of /tmp/subdir/subsubdir?

a) You don’t need any permissions for /tmp/subdir.
b) You must have execute permissions for /tmp/subdir.
c) You must have read permissions for /tmp/subdir.
d) You must have read and write permissions for /tmp/subdir.