Labexam
From Bobs Projects
Lab exams are run in the CSIT Labs.
Contents |
Overview
During a lab exam, we modify firewall rules at the choke points to restrict access to what the Lab machines can access. We can do this only on the wired networks, we currently do not have sufficient means to choke wireless or 3G network accesses.
The main doctrine is to not rely on any access restrictions implemented on the lab machines themselves. Instead, we block all external access and then provide access to alternatives for the facilities required during the lab exam, such as alternative file servers for student home directories and a web proxy for any websites we require access to.
File Servers
Creating and copying template home directory
export TMPL=u1234567 cd $TMPL find . -exec grep -s -l $TMPL '{}' '+' > ../filelist.txt
#!/bin/bash for stud in `cat UIDs.list` ; do echo $stud ; cp -a $TMPL $stud ; (cd $stud ; for i in `cat ../filelist.txt` ; do perl -i -pne 's/$TMPL/$stud/g' $i ; done ) ; chown -R $stud.student $stud ; done
Computer Networks
The Computer networks lab exam uses some additional facilities: