View previous topic :: View next topic |
Author |
Message |
fourhead l33t


Joined: 03 Sep 2003 Posts: 875 Location: Cologne, Germany
|
Posted: Tue Jan 13, 2004 1:36 am Post subject: file protection with libtrash |
|
|
i found a wonderful little tool today: libtrash! libtrash is a little library that is being prelinked to all binaries and then intercepts the 'unlink' and 'rename' of glibc. what this means? well, whenever you delete a file, be it with the 'rm' command, in konqueror, in openoffice or gimp - just anywhere - it doesn't actually gets deleted but moved to ~/Trash (dir is configable). this means you'll never get angry again because you've again deleted an important file by mistake.
libtrash is nicely configurable, you can exclude directories from being 'protected', this is nice for /var or /tmp. you can also exclude certain files from being protected, like .o, .log, .bak and so on. also, you can 'protect' certain dirs even more, for example /usr/bin or /root from being deleted at all. an rm -rf /usr/bin would just return an error.
for anyone who's interested: go to http://m-arriaga.net/software/libtrash/ download it, edit libtrash.conf _BEFORE_ you compile, type make, then make install, and edit your /etc/profile. it's all described in the README.
i hope it's helpful for some of you
tom |
|
Back to top |
|
 |
charlieg Advocate


Joined: 30 Jul 2002 Posts: 2149 Location: Manchester UK
|
Posted: Tue Jan 13, 2004 3:14 am Post subject: |
|
|
Well, here's the bugzilla entry for an ebuild.
Looks like somebody took it up and then forgot about it. I used my bugzilla janitor superpowers to reassign it to bug-wranglers so hopefully it'll get noticed and sorted out. _________________ Want Free games?
Free Gamer - open source games list & commentary
Open source web-enabled rich UI platform: Vexi |
|
Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|