Updated: 2014-04-03 05:10 EDT
Parts of the College network were down on Saturday/Sunday.
2222
and host cst8207-2222.idallen.ca
All course notes were unaffected and continued to be available through my course home page and the backup course home page.
Check the due date for each assignment and put a reminder in your agenda, calendar, and digital assistant.
The worksheets are available in four formats: Open Office, PDF, HTML, and Text. Only the Open Office format allows you “fill in the blanks” in the worksheet. The PDF format looks good but doesn’t allow you to type into the blanks in the worksheet. The HTML format is crude but useful for quick for viewing and searching online.
chmod
, umask
vim
vim
vimtutor
program on the CLS.So as not to delay the marking of the midterm test for students who followed the published directions correctly, I removed all mark-sense sheets that weren’t filled out correctly and submitted the rest for marking last week. Here are the statistics for those students.
7
Number of students who got question #45 wrong even though the answer was given in the Test Instructions printed at the top of the test: 4
Class scores for 79 (out of 92 registered) students:
93.3 91.1 88.9 88.9 88.9 86.7 84.4 84.4 84.1 82.2 82.2 81.9 81.9 80 80 77.8 77.8 77.8 77.8 77.8 77.3 75.6 75.6 75.6 75.6 75.2 73.3 71.1 68.9 66.8 66.7 64.7 64.4 64.4 62.5 62.2 60.4 60 60 57.8 57.8 54.3 53.3 53.3 53.3 53.3 52.2 51.1 51.1 49.6 48.9 47.4 46.7 44.4 42.2 40 39.7 37.8 35.6 35.6 34.5 33.3 31.3 31.1 31.1 31.1 28.9 28.9 28.9 26.7 25.9 25.1 25.1 25.1 24.4 23 22.2 22.2 15.6
90% - 100% 2 **
80% - 90% 13 *************
70% - 80% 13 *************
60% - 70% 11 ***********
50% - 60% 11 ***********
40% - 50% 7 *******
30% - 40% 9 *********
20% - 30% 12 ************
10% - 20% 1 *
0% - 10% 0
You can see the errors in Midterm Test #2 PDF.
Students who did not receive their marks last week must see me to fix the errors on their mark-sense forms. The course drop date is approaching on Friday March 21, so if you want your midterm mark before that date, you need to see me on Monday or Tuesday. Bring a pencil and a good eraser.
Take notes in class! Your in-class notes would go here.
Understanding pathnames and symlinks:
1. Ways of creating files in /tmp:
$ touch /tmp/file ; cp foo /tmp/tmpfile ; mv bar /tmp/tmpfile
2. Create a directory in /tmp:
$ mkdir /tmp/dir
3. Create a symlink in /tmp with target "linux":
$ ln -s linux /tmp/symlink
De-reference (relative path): /tmp/symlink -> /tmp/linux
4. Create a symlink in /tmp/a/b/bar with target "../../a/../foo":
$ ln -s ../../a/../foo /tmp/a/b/bar
De-reference: /tmp/a/b/bar -> /tmp/a/b/../../a/../foo -> /tmp/foo
In-class symlink exercise on the CLS:
Create one of these symbolic link targets in /tmp
Use your CLS userid as the link name in /tmp
You may have to remove an existing name first
Easy target: linux
Medium target: symbolic link
Hard target: $$$ It's a "symbolic link" $$$
You can check your work by executing the script /tmp/do.sh
Algonquin had a massive network failure around 3pm on Saturday, but ITS has said nothing about it other than “we had some issues; everything is fine now; have a good weekend”. (I still don’t have off-campus connectivity to my Course Linux Server as of 02:45am Monday.)
From a friend who is a student at Carleton:
“Students, faculty and staff are advised that at approximately 3 p.m. on Saturday, March 15, the university experienced a severe network failure that impacted some Internet access and some internal network services.” - Apparently it was some kind of DDOS attack (SYN flood?) and it’s still ongoing. Seems that services are intermittent (for my Carleton friends, CULearn is not accessible - it’s hitting the authentication services, it seems…)"
Seems too much of a coincidence that I lost connectivity to Algonquin at just after 3pm on the same Saturday, and still don’t have it back.
traceroute
out from the Course Linux Server shows large packet loss: My traceroute [v0.80]
idallen-ubuntu (0.0.0.0) Sat Mar 15 18:55:44 2014
Keys: Help Display mode Restart statistics Order of fields quit
Packets Pings
Host Loss% Snt Last Avg Best Wrst StDev
1. 205.211.50.2 0.0% 68 2.7 4.0 1.1 76.7 9.3
2. wsp05974301wss.cr.net.cable.roge 0.0% 68 2.4 2.5 2.4 4.5 0.3
3. 24.153.31.217 0.0% 68 3.0 5.6 2.4 97.3 15.5
4. te4-0-0.gw01.rchrd.phub.net.cabl 58.2% 68 7.4 7.5 5.7 9.8 1.2
5. gi-1-1-3.gw01.grnsbr.phub.net.ca 85.1% 68 14.3 13.0 11.7 14.3 0.9
6. 24.156.144.178 92.5% 68 22.3 25.6 21.8 39.6 7.8
7. te0-4-0-14.ccr21.ord03.atlas.cog 86.6% 68 22.6 22.7 22.4 22.9 0.1
8. be2006.mpd21.ord01.atlas.cogentc 76.5% 68 23.0 23.1 22.8 24.3 0.4
be2005.ccr21.ord01.atlas.cogentco.com
be2003.ccr22.ord01.atlas.cogentco.com
be2004.mpd22.ord01.atlas.cogentco.com
9. be2080.ccr22.yyz02.atlas.cogentc 85.1% 68 24.2 24.5 24.0 25.4 0.5
be2079.ccr21.yyz02.atlas.cogentco.com
be2081.ccr21.yyz02.atlas.cogentco.com
be2082.ccr22.yyz02.atlas.cogentco.com
10. te4-1.mag01.yyz02.atlas.cogentco 64.2% 68 208.3 39.5 21.3 208.3 45.3
te4-1.mag02.yyz02.atlas.cogentco.com
te7-1.mag01.yyz02.atlas.cogentco.com
11. te3-1.ccr01.yyz03.atlas.cogentco 85.1% 68 24.7 77.6 24.0 182.6 69.4
te4-1.ccr01.yyz03.atlas.cogentco.com
12. 38.122.70.210 84.8% 67 24.2 24.5 24.0 25.5 0.5
13. 208.85.223.218 89.4% 67 24.2 24.8 24.2 25.6 0.5
14. host-208-79-60-218.static.295.ca 74.2% 67 28.4 28.2 27.6 29.3 0.5
15. pc-1.rowswitch3.kit.rackanddata. 89.1% 65 28.7 28.5 28.1 28.8 0.3
16. 162.219.1.148 71.9% 65 28.2 28.0 26.2 28.9 0.6
17. idallen-cloud.idallen.ca 82.8% 65 29.2 48.9 28.6 189.8 47.0
traceroute
from home to the Course Linux Server shows large packet loss: My traceroute [v0.80]
idallen-oak.home.idallen.ca (0.0.0.0) Sat Mar 15 19:02:11 2014
Keys: Help Display mode Restart statistics Order of fields quit
Packets Pings
Host Loss% Snt Last Avg Best Wrst StDev
1. 192.168.2.1 0.0% 112 0.8 0.9 0.7 1.3 0.1
2. lo-100.lns02.tor.man.teksavvy.co 0.0% 112 20.5 15.8 10.9 182.9 17.5
3. 69.196.136.132 0.0% 112 10.7 13.5 10.4 43.6 6.3
4. 69.196.136.41 0.0% 112 10.7 13.3 10.2 58.6 7.1
5. igw01.front.net.cable.rogers.com 0.0% 112 11.0 15.5 10.5 93.6 13.3
6. 69.63.251.145 0.0% 112 14.5 14.6 11.4 24.8 2.9
7. 24.153.7.2 0.0% 112 20.0 20.5 17.1 30.3 2.7
8. te-3-0-0.agw01.phub.net.cable.ro 0.0% 112 17.1 19.9 16.4 76.2 9.5
9. 24.153.31.218 87.4% 112 21.4 22.9 21.1 31.6 3.1
10. wsp05974302wss.cr.net.cable.roge 95.5% 111 21.9 23.3 21.4 25.1 1.7
11. 205.211.77.51 93.6% 111 21.2 21.6 21.2 21.9 0.3
/var/log/apache2/error.log
:$ fgrep 10.100.11.36 /var/log/apache2/error.log
[Thu Mar 13 17:18:10 2014] [error] [client 10.100.11.36] Invalid URI in request GET %2E%2E%5C%2E%2E%5C%2E%2E%5C%2E%2E%5C%2E%2E%5C%2E%2E%5C%2E%2E%5C%2E%2E%5C%2E%2E%5C%2E%2E%5Cboot%2Eini HTTP/1.1
[Thu Mar 13 17:18:11 2014] [error] [client 10.100.11.36] Invalid URI in request GET %2E%2E%5C%2E%2E%5C%2E%2E%5C%2E%2E%5C%2E%2E%5C%2E%2E%5C%2E%2E%5C%2E%2E%5C%2E%2E%5C%2E%2E%5Cetc%5Cpasswd HTTP/1.1
[Thu Mar 13 17:18:11 2014] [error] [client 10.100.11.36] Invalid URI in request GET ..\\\\..\\\\..\\..\\\\..\\..\\\\..\\..\\\\\\boot.ini HTTP/1.1
[Thu Mar 13 17:18:11 2014] [error] [client 10.100.11.36] Invalid URI in request GET %c0.%c0./%c0.%c0./%c0.%c0./%c0.%c0./%c0.%c0./boot.ini HTTP/1.1
[Thu Mar 13 17:18:12 2014] [error] [client 10.100.11.36] Invalid URI in request GET %c0%2e%c0%2e/%c0%2e%c0%2e/%c0%2e%c0%2e/%c0%2e%c0%2e/boot.ini HTTP/1.1
[Thu Mar 13 17:18:12 2014] [error] [client 10.100.11.36] Invalid URI in request GET index.html?../../../../../boot.ini HTTP/1.1
[Thu Mar 13 17:18:12 2014] [error] [client 10.100.11.36] Invalid URI in request GET index.html?..\\..\\..\\..\\..\\boot.ini HTTP/1.1
[Thu Mar 13 17:18:13 2014] [error] [client 10.100.11.36] File does not exist: /var/www/html/..\\..\\\\..\\..\\\\..\\..\\\\..\\..\\boot.ini
[Thu Mar 13 17:18:13 2014] [error] [client 10.100.11.36] File does not exist: /var/www/html/\xc0.\xc0.\\\xc0.\xc0.\\\xc0.\xc0.\\boot.ini
[Thu Mar 13 17:18:13 2014] [error] [client 10.100.11.36] File does not exist: /var/www/html/..\\
[Thu Mar 13 17:18:13 2014] [error] [client 10.100.11.36] File does not exist: /var/www/html/..\\
[Thu Mar 13 17:18:13 2014] [error] [client 10.100.11.36] File does not exist: /var/www/html/\\..
[Thu Mar 13 17:18:14 2014] [error] [client 10.100.11.36] File does not exist: /var/www/html/..\\..\\..\\boot.ini
[Thu Mar 13 17:18:14 2014] [error] [client 10.100.11.36] File does not exist: /var/www/html/..\\..\\..\\..\\\\..\\..\\\\..\\..\\\\\\boot.ini
[Thu Mar 13 17:18:14 2014] [error] [client 10.100.11.36] Invalid URI in request GET /../../../../../../../etc/passwd HTTP/1.1
[Thu Mar 13 17:18:14 2014] [error] [client 10.100.11.36] File does not exist: /var/www/html/\\..\\..\\..\\..\\..\\..\\..\\boot.ini
[Thu Mar 13 17:18:23 2014] [error] [client 10.100.11.36] Invalid method in request \x81u\x01\x03\x03\x01\\
[Thu Mar 13 17:18:23 2014] [error] [client 10.100.11.36] Invalid method in request \x16\x03\x01\x01v\x01
/var/log/auth.log
:$ fgrep 10.100.11.36 /var/log/auth.log
[...]
Mar 13 17:19:25 idallen-ubuntu sshd[14483]: Bad protocol version identification 'GET /..\\/\\..\\/\\..\\/\\boot.ini HTTP/1.1' from 10.100.11.36
Mar 13 17:19:25 idallen-ubuntu sshd[14482]: Bad protocol version identification '\026\003\002' from 10.100.11.36
Mar 13 17:19:25 idallen-ubuntu sshd[14487]: Bad protocol version identification '\201u\001\003\003\001\\' from 10.100.11.36
Mar 13 17:19:25 idallen-ubuntu sshd[14486]: Bad protocol version identification '\026\003\002' from 10.100.11.36
Mar 13 17:19:25 idallen-ubuntu sshd[14488]: Bad protocol version identification '\026\003\001\001v\001' from 10.100.11.36
Mar 13 17:19:25 idallen-ubuntu sshd[14489]: Bad protocol version identification 'GET /\\../\\../\\../boot.ini HTTP/1.1' from 10.100.11.36
Mar 13 17:19:25 idallen-ubuntu sshd[14490]: Bad protocol version identification '\201u\001\003\003\001\\' from 10.100.11.36
Mar 13 17:19:25 idallen-ubuntu sshd[14492]: Bad protocol version identification '\201u\001\003\003\001\\' from 10.100.11.36
Mar 13 17:19:25 idallen-ubuntu sshd[14493]: Bad protocol version identification '\026\003\001\001v\001' from 10.100.11.36
Mar 13 17:19:25 idallen-ubuntu sshd[14494]: Bad protocol version identification '\026\003\001\001v\001' from 10.100.11.36
Mar 13 17:19:25 idallen-ubuntu sshd[14491]: Did not receive identification string from 10.100.11.36
Mar 13 17:19:25 idallen-ubuntu sshd[14495]: Bad protocol version identification 'GET ////..\\..\\..\\boot.ini HTTP/1.1' from 10.100.11.36
Mar 13 17:19:25 idallen-ubuntu sshd[14496]: Bad protocol version identification '\201u\001\003\003\001\\' from 10.100.11.36
Mar 13 17:19:26 idallen-ubuntu sshd[14497]: Bad protocol version identification '\026\003\001\001v\001' from 10.100.11.36
Mar 13 17:19:26 idallen-ubuntu sshd[14498]: Bad protocol version identification 'GET /..\\..\\..\\..\\\\..\\..\\\\..\\..\\\\\\boot.ini HTTP/1.1' from 10.100.11.36
Mar 13 17:19:26 idallen-ubuntu sshd[14501]: Bad protocol version identification '\201u\001\003\003\001\\' from 10.100.11.36
Mar 13 17:19:26 idallen-ubuntu sshd[14502]: Bad protocol version identification '\026\003\001\001v\001' from 10.100.11.36
Mar 13 17:19:26 idallen-ubuntu sshd[14503]: Bad protocol version identification 'GET /../../../../../../../etc/passwd HTTP/1.1' from 10.100.11.36
Mar 13 17:19:26 idallen-ubuntu sshd[14505]: Bad protocol version identification '\201u\001\003\003\001\\' from 10.100.11.36
Mar 13 17:19:26 idallen-ubuntu sshd[14507]: Bad protocol version identification '\026\003\001\001v\001' from 10.100.11.36
Mar 13 17:19:26 idallen-ubuntu sshd[14508]: Bad protocol version identification 'GET /%5c%2e%2e%5c%2e%2e%5c%2e%2e%5c%2e%2e%5c%2e%2e%5c%2e%2e%5c%2e%2e%5cboot.ini HTTP/1.1' from 10.100.11.36
Mar 13 17:19:26 idallen-ubuntu sshd[14509]: Bad protocol version identification '\201u\001\003\003\001\\' from 10.100.11.36
Mar 13 17:19:26 idallen-ubuntu sshd[14510]: Bad protocol version identification '\026\003\001\001v\001' from 10.100.11.36
Mar 13 17:19:27 idallen-ubuntu sshd[14511]: Bad protocol version identification 'GET /%5c%2e%2e%5c%2e%2e%5c%2e%2e%5c%2e%2e%5c%2e%2e%5c%2e%2e%5c%2e%2e%5cetc%2fpasswd HTTP/1.1' from 10.100.11.36
Mar 13 17:19:27 idallen-ubuntu sshd[14514]: Bad protocol version identification '\201u\001\003\003\001\\' from 10.100.11.36
Mar 13 17:19:27 idallen-ubuntu sshd[14516]: Bad protocol version identification '\026\003\001\001v\001' from 10.100.11.36
Mar 13 17:19:27 idallen-ubuntu sshd[14517]: Bad protocol version identification 'GET / HTTP/1.1' from 10.100.11.36
Mar 13 17:19:27 idallen-ubuntu sshd[14518]: Bad protocol version identification '\201u\001\003\003\001\\' from 10.100.11.36
Mar 13 17:19:27 idallen-ubuntu sshd[14519]: Bad protocol version identification '\026\003\001\001v\001' from 10.100.11.36
Mar 13 17:19:27 idallen-ubuntu sshd[14520]: Bad protocol version identification 'GET / HTTP/1.1' from 10.100.11.36
Mar 13 17:19:27 idallen-ubuntu sshd[14521]: Bad protocol version identification '\201u\001\003\003\001\\' from 10.100.11.36
Mar 13 17:19:27 idallen-ubuntu sshd[14522]: Bad protocol version identification '\026\003\001\001v\001' from 10.100.11.36
Mar 13 17:19:28 idallen-ubuntu sshd[14523]: Bad protocol version identification '\201u\001\003\003\001\\' from 10.100.11.36
Mar 13 17:19:28 idallen-ubuntu sshd[14524]: Bad protocol version identification '\026\003\001\001v\001' from 10.100.11.36
Mar 13 17:19:28 idallen-ubuntu sshd[14527]: Bad protocol version identification 'GET / HTTP/1.1' from 10.100.11.36
Mar 13 17:19:46 idallen-ubuntu sshd[14555]: Did not receive identification string from 10.100.11.36
Mar 13 17:19:51 idallen-ubuntu sshd[14566]: Did not receive identification string from 10.100.11.36
Mar 13 17:19:56 idallen-ubuntu sshd[14588]: Protocol major versions differ for 10.100.11.36: SSH-2.0-OpenSSH_5.9p1 Debian-5ubuntu1.1 vs. SSH-1.5-NmapNSE_1.0
Mar 13 17:19:56 idallen-ubuntu sshd[14577]: Did not receive identification string from 10.100.11.36
Mar 13 17:19:57 idallen-ubuntu sshd[14592]: Bad protocol version identification '\026\003' from 10.100.11.36
Mar 13 17:19:57 idallen-ubuntu sshd[14593]: Bad protocol version identification '\026\003' from 10.100.11.36
Mar 13 17:20:02 idallen-ubuntu sshd[14594]: Did not receive identification string from 10.100.11.36