Usenet comp.unix.osf.osf1 (1992-2004)
 help / color / mirror / Atom feed
* AdvFS Trashcans
@ 1994-11-07  9:06 Stuart 'Zen' Bishop
  1994-11-07 15:01 ` Paul Southworth
  0 siblings, 1 reply; 3+ messages in thread
From: Stuart 'Zen' Bishop @ 1994-11-07  9:06 UTC (permalink / raw)


I am running DEC OSF/1 3.0 with the Advanced File System Utilities.
I would like to automatically have trashcans for all user's home
directories, and subdirectories.

I can create a trashcan directory using the command 'mktrashcan trashdir dir',
but unfortunately, this is not recirsive. ie. 'mktrashcan trashcan .'
does not mean that './subdir' has a trashcan directory.

Creating an alias for mkdir is not an option, as I need to protect
directories created inside applications which create them using kernal calls.

I can think of two methods that will work:

1) A cron job running every 15 minutes that scans the home directories
and adds a trashcan directory for any new directories.

2) Somehow playing around with the auditing systems, detecting when a mkdir
system call is made, and reacting appropriately.

The first has the obvious disadvantage of not protecting files deleted from
recently created directories. And involves scanning the file system a bit
too much for my liking...

The second has the disadvantage that I don't know where to start. This solution
would also probably be far too cumbersom.

Any other ideas?

--

 _____                                   
//  //    __                     for a good time call zen@rmit.edu.au  //
   //    /  \   I\ I                                                  //
  //    (--     I \I  alias             Unix Systems Administrator   //
 //      \__/   I  I  Stuart Bishop     Business Faculty, RMIT      //
((_________________________________________________________________//


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~1994-11-09  1:52 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1994-11-07  9:06 AdvFS Trashcans Stuart 'Zen' Bishop
1994-11-07 15:01 ` Paul Southworth
1994-11-09  1:52   ` Stuart 'Zen' Bishop

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox