From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,ed6d503eceff92c6 X-Google-Attributes: gidfee84,public X-Google-ArrivalTime: 1994-11-07 08:55:34 PST Path: nntp.gmd.de!xlink.net!howland.reston.ans.net!math.ohio-state.edu!caen!msuinfo!harbinger.cc.monash.edu.au!aggedor.rmit.EDU.AU!zen From: zen@hera.bf.rmit.edu.au (Stuart 'Zen' Bishop) Newsgroups: comp.unix.osf.osf1 Subject: AdvFS Trashcans Date: 7 Nov 1994 09:06:26 GMT Organization: Royal Melbourne Institute of Technology, Melbourne, Australia. Message-ID: <39kqmi$blu@aggedor.rmit.EDU.AU> NNTP-Posting-Host: hera.bf.rmit.edu.au NNTP-Posting-User: zen X-Newsreader: NN version 6.5.0 (NOV) 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 // ((_________________________________________________________________//