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

  1. Newsgroups: comp.unix.admin
  2. Path: sparky!uunet!zaphod.mps.ohio-state.edu!saimiri.primate.wisc.edu!doug.cae.wisc.edu!castlab!chris
  3. From: chris@castlab.uucp (Christian)
  4. Subject: Re: How to write a "turnin" utility??
  5. Organization: U of Wisconsin-Madison College of Engineering
  6. Distribution: world 
  7. Date: 29 Dec 92 01:54:18 CST
  8. Message-ID: <1992Dec29.015418.12223@doug.cae.wisc.edu>
  9. References: <1992Dec28.213900.14908@organpipe.uug.arizona.edu>
  10. Lines: 36
  11.  
  12. In article <1992Dec28.213900.14908@organpipe.uug.arizona.edu> dave@bigdog.engr.arizona.edu (Dave Pottinger) writes:
  13. >Hi,
  14. >
  15. >I'm relatively new to Unix sys admin stuff and have run into some
  16. >problems with what should be a simple little "turnin" project.
  17. >Basically, we want to be able to have students "turnin" files from their
  18. >directory to some place designated by each instructor that will then be
  19. >accessible only to that instructor/grader (for obvious reasons).  These
  20. >instructors do not have superuser privs.  I've used this command on
  21. >other machines, but am not really sure where to begin learning how to
  22. >implement one on ours.  C?  Scripts (ugh)?  Any info would be greatly
  23. >appreciated.  Thanks.
  24. >
  25.  
  26. There is the script idea. SetUID on the script to that of a user that
  27. has write access to the directory, and have the script copy the file name
  28. specified to that directory. 
  29.  
  30. how about:
  31.  
  32. # /bin/csh
  33. cp %1 /usr/home/instructors/directory/
  34.  
  35. save that as an executeable only file, put it where everyone can get at it,
  36. setuid to the appropriate user that has access to that directory, and the
  37. student then goes and runs the thing, and specifies the name of the file
  38. to plopped in the directory. Then give read/write access to the instructors
  39. for that directory.
  40.  
  41. For different instructors you could, for example, make a version for each
  42. course (turnin320, etc.) that copies the file to a directory designated for 
  43. cs320, etc.
  44.  
  45. Dunno if that helps...
  46.  
  47. -Chris
  48.