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