Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.2 9/18/84; site isis.UUCP Path: utzoo!watmath!clyde!cbosgd!ihnp4!houxm!mhuxt!mhuxr!ulysses!allegra!mit-eddie!think!harvard!seismo!hao!nbires!isis!aburt From: aburt@isis.UUCP (Andrew Burt) Newsgroups: net.unix,net.cse Subject: Re: students editing output Message-ID: <179@isis.UUCP> Date: Tue, 24-Sep-85 10:50:16 EDT Article-I.D.: isis.179 Posted: Tue Sep 24 10:50:16 1985 Date-Received: Sun, 29-Sep-85 04:21:25 EDT References: <236@uwai.UUCP> <433@uvm-cs.UUCP> <300@uwvax.UUCP> <245@investor.UUCP> Reply-To: aburt@isis.UUCP (Andrew Burt) Organization: University of Denver Math and Computer Science Lines: 38 Xref: watmath net.unix:5739 net.cse:481 In order to prevent that sort of mischief here what I did was create a program, 'turnin', which works thus... The instructor owns a class homework directory, in which are subdirectories for each student. Each dir is mode 700 (or 770 to let in a grader perhaps) and 'turnin' runs setuid to the instructor. Turnin allows a student to hand in any files for given assignment numbers, from at which point it stashes those files in their h/w dir. E.g., "turnin 1 prog1.c prog1" which turns in "prog1.c" and the binary "prog1" for assignment 1. Further, if a student adds "script" to the list of files, it calls script and saves the output into this directory directly. Thus the student is unable to modify his script. Security has been handled in various ways: Only simple filenames may be turned in (lest a student try to turn in a file of the instructors by pathname...) and I use a modified 'script' -- after it opens the output file I setuid(getuid()). (Don't set up a scheme like this with an unmodified 'script' -- otherwise the student will be the instructor for the duration of the script.) Turnin also allows the student to 'cat', 'ls -l', and 'rm' files he has turned in. At the instructor's discretion it allows overwriting files (in any case it leaves a note indicating the date and time of any overwrites). My rule on this is that if the modification time of the file is later than the due date, that part of the assignment gets no credit. If there's any demand for it I'll mail/post the source. Andrew -- Andrew Burt University of Denver Department of Math and Computer Science UUCP: {hao!udenva, nbires}!isis!aburt CSNet: aburt@UDENVER (NOT udenva, as above...) ARPA: aburt%udenver.csnet@csnet-relay.arpa Brought to you by Super Global Mega Corp .com