#!/bin/sh
# run the script as: sh closehandin.sh SL/SL1 all.txt

dir=$1
basedir="/afs/andrew/course/15/123/handin"

cat $2 | 
while read id
 do
  fs sa $basedir/$dir/$id $id l
  fs sa $basedir/$dir/$id system:anyuser l
  fs sa $basedir/$dir/$id ylung all
  fs sa $basedir/$dir/$id areece all
  fs sa $basedir/$dir/$id jmburges all
  fs sa $basedir/$dir/$id mengh all
 done
