1
h14
CS8 M17
Name:
(as it would appear on official course roster)
Umail address: @umail.ucsb.edu
Optional: name you wish to be called
if different from name above.
Optional: name of "homework buddy"
(leaving this blank signifies "I worked alone"

h14: Unix File Permisssions and Octal

ready? assigned due points
true Fri 09/01 09:30AM Tue 09/05 09:30AM

You may collaborate on this homework with AT MOST one person, an optional "homework buddy".

MAY ONLY BE TURNED IN IN THE LECTURE/LAB LISTED ABOVE AS THE DUE DATE.
There is NO MAKEUP for missed assignments, and you may not submit work in advance, or on behalf of another person.
In place of that, we drop the four lowest scores (if you have zeros, those are the four lowest scores.)


READING ASSIGNMENT

Please review the lecture notes from Thursday 08/31 about octal numbers and Unix file permissions, or consult this web page:

https://ucsb-cs8.github.io/topics/number_conversions/

Then complete these problems:

  1. (10 pts) Please fill in the information at the top of this homework sheet, including your name and umail address. If the other two items apply, please fill them in as well. Please do this every single time you submit homework for this class. It is important to fill in both name and umail every time, since handwriting is sometimes difficult to decipher. Having both helps us ensure you get credit for your work.

    Also: while we strongly prefer that you submit your homework on a single sheet of paper, if you MUST submit it on multiple sheets, JUST write your name at the top of both sheets and turn in both sheets UNCONNECTED.

    DO NOT staple, paper clip, spit-fold-and-tear, or do ANYTHING that would make it difficult to automatically feed your paper through a scanner.

  2. (10 pts) What is the Unix command to list your files in a way that shows the unix file permissions with strings such as rwxr-xr-x?

  3. (10 pts) If there is a Unix file in my current directory called index.html and I want to set its permissions to rw-r--r-- what Unix command will do that? (The full command, not just the first word of the command).

    Please complete each of the conversions shown. You can practice at the page:

    https://www.cs.ucsb.edu/~pconrad/cs8/topics/chmodQuiz1/ until you are confident that you know how to solve these.

  4. (10 pts) Convert rwxr-x--- from rwx format to octal:

  5. (10 pts) Convert rwxr-xr-x from rwx format to octal:

  6. (10 pts) Convert 777 from octal to rwx format:

  7. (10 pts) Convert rwxrwx--- from rwx format to octal:

  8. (10 pts) Convert 600 from octal to rwx format:

  9. (10 pts) Convert 444 from octal to rwx format:

  10. (10 pts) Convert rwx--x--x from rwx format to octal: