interesting file...What is it? why not give write permission to the directory, but no write to the file? Then if someone wants to modify it they MUST remove the file and create it themselves. Then your deamon can be run as root and always chmod the file to no-write.
> -----Original Message----- > From: Kipp, James [mailto:[EMAIL PROTECTED]] > Sent: Monday, July 01, 2002 1:19 PM > To: '[EMAIL PROTECTED]' > Subject: RE: grab user to last modify file > > > > > > You can't do that. Unix doesn't support that sort of thing. If you > > can't get it from, say, ls, then Perl sure can't figure it > > out, either. > > I thought that was the case, but figured somebody may have a done it. > I guess i will have to go to plan b like this: > 1. run as a deamon > 2. monitor the file > 3. notice the access and call routine to grovel 'w' and grep > for the file > name and > corresponding user > > don't know if it will work, but I am going to give it a shot > > Thanks again > > > > > -- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > ---------------------------------------------------------------------------- -------------------- The views and opinions expressed in this email message are the sender's own, and do not necessarily represent the views and opinions of Summit Systems Inc. -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]