home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #18 / NN_1992_18.iso / spool / comp / unix / programm / 4380 < prev    next >
Encoding:
Text File  |  1992-08-19  |  1.9 KB  |  46 lines

  1. Newsgroups: comp.unix.programmer
  2. Path: sparky!uunet!uunet.ca!canrem!telly!problem!trinet!uunorth!dlomas!david
  3. From: david@dlomas.dlomas.uucp (David Lomas)
  4. Subject: Shell/Daemon to monitor files
  5. Organization: Lomas Data Management Inc.
  6. Distribution: na
  7. Date: Tue, 18 Aug 92 01:38:05 GMT
  8. Message-ID: <1992Aug18.013805.9857@dlomas.trinet>
  9. Sender: david@dlomas.trinet (David Lomas)
  10. Lines: 34
  11.  
  12. Hi all:
  13.  
  14. I've got a small project I'm about to start that may pique your interest.
  15. And I'd appreciate any hints, etc.
  16.  
  17. I'd like to write a background process (daemon) that monitors a small
  18. group of directories. If a user who is not the owner of a file there,
  19. reads that file ( not his own ), I'd like the owner and a designated admin
  20. to get mail to that effect. If a user ( not owner ) copies a file out of
  21. that directory, I'd like this daemon to change the perms on *that* file
  22. to -rw-------, and change the owner to root, to prevent *any* subsequent
  23. access, and mail the owner and the admin to that effect. When the file
  24. is *replaced* , again mail to the user and the admin will be generated
  25. to that effect. Oh, BTW, I'd also like the 'logname' of the person who
  26. accesses, or copies files (other than owner) embedded in the mail.
  27.  
  28. I thought of writing a shell script that would be the only method of
  29. reading, writing, mv'ing, etc. files in these directories, but that 
  30. would make it tedious for users who expect their software to place their
  31. files there when saved.
  32.  
  33. Specifically, this will be a CADD drawing-file manager.
  34.  
  35. Any great ideas? I will summarize to the net if sufficient interest is
  36. shown.
  37.  
  38.  
  39. -- 
  40. David Lomas ( david@dlomas.UUCP ) voice(416)354-4938 fax(416)354-0902    
  41. Lomas Data Management Inc.       |     "Good"    "Fast"    "Cheap"  |
  42. Niagara Falls, Ontario Canada    |           Pick any two           |
  43. #                                  stolen sig - I think it's good
  44. -- 
  45. David Lomas
  46.