home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #26 / NN_1992_26.iso / spool / comp / unix / question / 12951 < prev    next >
Encoding:
Internet Message Format  |  1992-11-05  |  1.6 KB

  1. Path: sparky!uunet!netxcom!jwc
  2. From: jwc@netx.com (Jeffrey W. Comer)
  3. Newsgroups: comp.unix.questions
  4. Subject: Re: Monitoring /tmp
  5. Message-ID: <1383@netxcom.netx.com>
  6. Date: 5 Nov 92 17:36:53 GMT
  7. Sender: news@netxcom.netx.com
  8. Organization: The Chaos Bobs
  9. Lines: 30
  10.  
  11. peter@merlin.acadiau.ca (Peter Steele) writes:
  12. >I was wondering if other sites have this kind of problem, where
  13. >students will copy large files into /tmp and leave them their so
  14. >their friends can copy them to their accounts. Their reasoning
  15. >is that this is simpler than setting the files up as public in
  16. >their own accounts, plus it doesn't take away from their quotas.
  17. >I don't like this practice as it fills up /tmp and could possibly
  18. >cause a program requiring legitimate use of /tmp to fail due to
  19. >lack of space. Has anyone got any suggestions on how to prevent
  20. >this sort of abuse of the /tmp directory? I can think of one
  21. >simple solution: A global .logout that executes:
  22. >
  23. >    find /tmp -user $user -exec rm {} \;
  24. >
  25. >but that has some potential problems...
  26.  
  27. Well you could always reboot every day.... q;-> Seriously, here at my
  28. company we have a cron job called prune that runs once a day. It reads
  29. an input file, into which you can enter filenames (/etc/?tmp for example)
  30. or directories (/tmp). After each name, you can have prune remove a file
  31. if it grows beyond a certain size (in k-bytes) or it hasn't been updated
  32. after x days. It's very effective, except that you can always defeat it
  33. by touching your files.
  34.  
  35. E-Mail me for details.
  36.  
  37. And yes, we also have this problem, not just in /tmp, but in ALL filesys-
  38. tems.
  39.  
  40. -jc
  41.