Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
file protection with libtrash
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Documentation, Tips & Tricks
View previous topic :: View next topic  
Author Message
fourhead
l33t
l33t


Joined: 03 Sep 2003
Posts: 875
Location: Cologne, Germany

PostPosted: Tue Jan 13, 2004 1:36 am    Post subject: file protection with libtrash Reply with quote

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
View user's profile Send private message
charlieg
Advocate
Advocate


Joined: 30 Jul 2002
Posts: 2149
Location: Manchester UK

PostPosted: Tue Jan 13, 2004 3:14 am    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Documentation, Tips & Tricks All times are GMT
Page 1 of 1

 
Jump to:  
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