LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices

Reply
 
Search this Thread
Old 06-22-2006, 12:23 PM   #1
asheesh.tyagi
Member
 
Registered: Apr 2005
Location: Delhi,India
Distribution: Red Hat
Posts: 35

Rep: Reputation: 15
Keeping record of deleted files


Hi everybody
I have a filer for linux and windows hosts.i want to know that is there any
way of keeping record of deleted files like who and when someone deleted some file.
i am using nfs and samba.and is it possible to collect deleted files to a folder
like recycle bin.

Thanks
 
Old 06-22-2006, 01:45 PM   #2
FreeDoughnut
Member
 
Registered: Jun 2006
Distribution: Slackware 10.2, Debian Testing/Unstable, Ubuntu Breezy Badger, working on LFS
Posts: 228

Rep: Reputation: 30
You can modify rm to move the file to a "recycle bin" folder and make an entry into a log. Then make an unrm to move the file back to where it was according to the log..
 
Old 06-22-2006, 10:00 PM   #3
J.W.
LQ Veteran
 
Registered: Mar 2003
Location: Milwaukee, WI
Distribution: Mint
Posts: 6,642

Rep: Reputation: 69
Knowing that the file "abc.txt" got deleted is of little value compared to what data existed in abc.txt, and along those lines, how exactly would knowing that a given file was deleted be helpful?

I suspect the real issue here has to do with backups........
 
Old 06-23-2006, 05:40 AM   #4
asheesh.tyagi
Member
 
Registered: Apr 2005
Location: Delhi,India
Distribution: Red Hat
Posts: 35

Original Poster
Rep: Reputation: 15
This machine is a filer which contains many samba shares. on every share 30 - 35 pepole has rw access and due to
some limitation i can't set sticky bit on these sahares. so i want to have a record of deleted files so that
we can know that who deleted the file.we have regular backup so data restoration is not a problem.

"You can modify rm to move the file to a "recycle bin" folder and make an entry into a log. Then make an unrm to move the file back to where it was according to the log."
can this be used with samba shares also.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Keeping ownership of files rtcary Linux - Newbie 2 07-17-2005 05:14 PM
Keeping Update files Mandrake 10 tusk23 Linux - General 0 07-29-2004 03:13 AM
Keeping user groups from files untwisted Linux - Security 2 03-15-2004 06:59 PM
How to delete the destination files while the source files deleted in cp -u ? myunicom Linux - General 4 09-26-2003 02:13 PM
Deleting newly created files keeping the existing ones icorsi Linux - General 0 10-07-2001 01:17 AM


All times are GMT -5. The time now is 04:22 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration