home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #31 / NN_1992_31.iso / spool / comp / unix / admin / 6827 < prev    next >
Encoding:
Text File  |  1992-12-29  |  1.5 KB  |  38 lines

  1. Newsgroups: comp.unix.admin
  2. Path: sparky!uunet!zaphod.mps.ohio-state.edu!saimiri.primate.wisc.edu!ames!sgi!odin!shire.corp.sgi.com!trant
  3. From: trant@shire.corp.sgi.com (Ken Trant)
  4. Subject: Re: How to write a "turnin" utility??
  5. Message-ID: <1992Dec29.173936.27789@odin.corp.sgi.com>
  6. Sender: news@odin.corp.sgi.com (Net News)
  7. Nntp-Posting-Host: shire.corp.sgi.com
  8. Reply-To: trant@sgi.com
  9. Organization: Silicon Graphics Inc. Server Technologies
  10. References: <1992Dec29.015418.12223@doug.cae.wisc.edu> <C010F5.9D6@news.iastate.edu> <1hpr33INNco0@rave.larc.nasa.gov> <0291H&pdqb@atlantis.psu.edu>
  11. Date: Tue, 29 Dec 1992 17:39:36 GMT
  12. Lines: 24
  13.  
  14.  I would not suggest a SetUID script simply because of the security
  15. issues. I wonder also if the files students turn in must be secure,
  16. you wouldn't want one student reviewing the work of other in order 
  17. to generate their own code. So you must make sure that once the file
  18. is delivered it is not accessible by others. 
  19.  
  20.  Does your system allow you to give away files?, not all do. Some
  21. basics then would be 
  22. chmod 400 $1
  23. mv $1 $SecureDir/$1.$$  #use PID so name is unique
  24. chown Teacher ${SecureDir}/$1.$$
  25.  
  26.  I would then send email to $Teacher to acknowledge delivery of the
  27. code.
  28.  
  29.  And I would use Perl.
  30.  
  31.   Happy Holidays
  32. -- 
  33.  -----
  34.  Ken Trant <trant@sgi.com>     / I think that I shall never see
  35.  Senior Systems Administrator / A billboard lovely as a tree
  36.  Information Services,       / Indeed, unless the billboards fall
  37.  Silicon Graphics, Inc      / I'll never see a tree at all
  38.