1. There should be no homework or lab files in your root directory.
2. All homework or lab files must be in subfolders
3. There should be NO folders with the exclusion of public_html that have read access to group or world
4. There should be no homework or lab files in your public_html directory (if you have one)
5. Your homedirectory   ~ should have the permissions 755
6. Your website directory   ~/public_html  should have the permissions 755
7. Your assignments directory  ~/assignments  should have permissions 770
7. Your assignments directory  ~/assignments  MUST be owned by faculty NOT student
9. All other directories in your root should have the permissions 700 








jdoe@sleipnir≥ cd jdoe@sleipnir≥ ls -lah total 53K drwx------ 2 jdoe student 464 Mar 20 13:46 . drwxr-xr-x 22 root root 1.1K Mar 20 13:32 .. drwxrws--- 4 jdoe faculty 128 Mar 15 10:29 assignments -rw-r--r-- 1 jdoe student 1.4K Mar 20 13:43 Lab1_Part3.cpp -rw-r--r-- 1 jdoe student 1.8K Mar 20 13:43 Lab1_Part4.cpp -rw-r--r-- 1 jdoe student 1.3K Mar 20 13:44 cs221_Lab1_Part1.cpp -rw-r--r-- 1 jdoe student 1.3K Mar 20 13:44 cs221_Lab1_Part2.cpp -rw-r--r-- 1 jdoe student 1.7K Mar 20 13:42 cs221_hw02.cpp -rw-r--r-- 1 jdoe student 6.3K Mar 20 13:42 cs221_hw05.cpp -rw-r--r-- 1 jdoe student 1.3K Mar 20 13:43 cs222_Lab1_Part1.cpp -rw-r--r-- 1 jdoe student 1.4K Mar 20 13:43 cs222_Lab1_Part2.cpp -rw-r--r-- 1 jdoe student 1.3K Mar 20 13:44 cs223_Lab1.cpp -rw-r--r-- 1 jdoe student 1.3K Mar 20 13:45 cs223_Lab2.cpp -rw-r--r-- 1 jdoe student 1.3K Mar 20 13:45 cs223_Lab3.cpp -rw-r--r-- 1 jdoe student 2.0K Mar 20 13:42 cs223_hw01.cpp jdoe@sleipnir≥
PROBLEM: there are files in the root directory SOLUTION: make subdirectories and move files there
jdoe@sleipnir≥ jdoe@sleipnir≥ jdoe@sleipnir≥ mkdir cs222 jdoe@sleipnir≥ mkdir cs223 jdoe@sleipnir≥ mkdir cs221 jdoe@sleipnir≥ jdoe@sleipnir≥ mv Lab1_Part3.cpp cs221 jdoe@sleipnir≥ mv Lab1_Part4.cpp cs221 jdoe@sleipnir≥ mv cs221_* cs221 jdoe@sleipnir≥ mv cs222_* cs222 jdoe@sleipnir≥ mv cs223_* cs223 jdoe@sleipnir≥ jdoe@sleipnir≥ ls -lah total 1.0K drwx------ 5 jdoe student 120 Mar 20 13:50 . drwxr-xr-x 22 root root 1.1K Mar 20 13:32 .. drwxrws--- 4 jdoe faculty 128 Mar 15 10:29 assignments drwxr-xr-x 2 jdoe student 336 Mar 20 13:50 cs221 drwxr-xr-x 2 jdoe student 48 Mar 20 13:49 cs222 drwxr-xr-x 2 jdoe student 176 Mar 20 13:50 cs223 jdoe@sleipnir≥
PROBLEM: the directories are public readable SOLUTION: remove group and other read permissions with chmod
jdoe@sleipnir≥ chmod 700 cs221 jdoe@sleipnir≥ chmod 700 cs222 jdoe@sleipnir≥ chmod 700 cs223 jdoe@sleipnir≥ jdoe@sleipnir≥ jdoe@sleipnir≥ ls -lah total 1.0K drwx------ 5 jdoe student 120 Mar 20 13:50 . drwxr-xr-x 22 root root 1.1K Mar 20 13:32 .. drwxrws--- 4 jdoe faculty 128 Mar 15 10:29 assignments drwx------ 2 jdoe student 336 Mar 20 13:50 cs221 drwx------ 2 jdoe student 48 Mar 20 13:49 cs222 drwx------ 2 jdoe student 176 Mar 20 13:50 cs223 jdoe@sleipnir≥
PROBLEM: none