Usenet comp.unix.osf.osf1 (1992-2004)
 help / color / mirror / Atom feed
From: zen@hera.bf.rmit.edu.au (Stuart 'Zen' Bishop)
Subject: AdvFS Trashcans
Date: 7 Nov 1994 09:06:26 GMT	[thread overview]
Message-ID: <39kqmi$blu@aggedor.rmit.EDU.AU> (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      //
((_________________________________________________________________//


             reply	other threads:[~1994-11-07  9:06 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1994-11-07  9:06 Stuart 'Zen' Bishop [this message]
1994-11-07 15:01 ` AdvFS Trashcans Paul Southworth
1994-11-09  1:52   ` Stuart 'Zen' Bishop
read-only archive

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