Need a "watching" program

Davies bdavies at ihlpy.ATT.COM
Sat May 13 07:12:31 AEST 1989


In article <8928 at csli.Stanford.EDU> rustcat at csli.stanford.edu (Vallury Prabhakar) writes:
> (wants to keep stats on who is accessing files in his directories)

Here is my suggestion:

For all of the files in your account, give the permissions that you would
normally for owner.  Set the group permissions to be as lenient as you wish
for everyone else to access; i.e. r-x for directories and r-- for files
would be good.  Then remove ALL permissions for other: ---.

Make your home directory, as well as your bin directory 755.

Finally, create a shell script (or binary) in your bin directory that
others must execute prior to accessing your files.  You can add logging
information into a file somewhere, do menu driven stuff, or whatever.
The trick is to do a chmod 2755 on the script.  This sets the 'setgid'
bit on the file so that the other users who execute this command have
your effective group ID, and can access files as per the group settings
that you have set up.

This method forces people to go through the front end program to access
your files, in which you can add logging.  It disallows other access,
other than to people who are in the same group as you.  If lots of other
people have the same group ID as you, then ask the SA to put you in your
own group.  I suspect he/she would not object to doing that, since it
is in general more secure to have everyone in their own group.

Later,
-- 
				Bryan R. Davies, AT&T Bell Labs
				IH 55314 4H-332 x3669 att!ihlpy!bdavies



More information about the Alt.sources mailing list